188bb90f342cd3af08f077c15033f83e99bfd9c6
[motion2.git] / server / api / userProfile / userProfile.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xcdd6=['lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','UserProfile','user_profiles'];(function(_0x46ae6e,_0x186f98){var _0x1d1971=function(_0x237b58){while(--_0x237b58){_0x46ae6e['push'](_0x46ae6e['shift']());}};_0x1d1971(++_0x186f98);}(_0xcdd6,0xb6));var _0x6cdd=function(_0x5cb790,_0x3f2b5d){_0x5cb790=_0x5cb790-0x0;var _0x276009=_0xcdd6[_0x5cb790];return _0x276009;};'use strict';var _=require(_0x6cdd('0x0'));var util=require(_0x6cdd('0x1'));var logger=require(_0x6cdd('0x2'))('api');var moment=require(_0x6cdd('0x3'));var BPromise=require(_0x6cdd('0x4'));var rp=require(_0x6cdd('0x5'));var fs=require('fs');var path=require(_0x6cdd('0x6'));var rimraf=require(_0x6cdd('0x7'));var config=require(_0x6cdd('0x8'));var attributes=require('./userProfile.attributes');module[_0x6cdd('0x9')]=function(_0x5aab35,_0x2e3024){return _0x5aab35[_0x6cdd('0xa')](_0x6cdd('0xb'),attributes,{'tableName':_0x6cdd('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};