Built motion from commit b5996064.|2.6.21
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0x146a=['resourceId','sectionId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex'];(function(_0x541116,_0x182fbb){var _0xbe29bb=function(_0x28ade9){while(--_0x28ade9){_0x541116['push'](_0x541116['shift']());}};_0xbe29bb(++_0x182fbb);}(_0x146a,0x1bc));var _0xa146=function(_0xf858e,_0x51b0f1){_0xf858e=_0xf858e-0x0;var _0x5344d8=_0x146a[_0xf858e];return _0x5344d8;};'use strict';var _=require(_0xa146('0x0'));var util=require(_0xa146('0x1'));var logger=require(_0xa146('0x2'))(_0xa146('0x3'));var moment=require(_0xa146('0x4'));var BPromise=require(_0xa146('0x5'));var rp=require(_0xa146('0x6'));var fs=require('fs');var path=require(_0xa146('0x7'));var rimraf=require('rimraf');var config=require(_0xa146('0x8'));var attributes=require(_0xa146('0x9'));module[_0xa146('0xa')]=function(_0xa06112,_0x47d1c2){return _0xa06112[_0xa146('0xb')](_0xa146('0xc'),attributes,{'tableName':_0xa146('0xd'),'paranoid':![],'indexes':[{'name':_0xa146('0xe'),'fields':[_0xa146('0xf'),_0xa146('0x10')]}],'timestamps':!![]});};