1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xa3b2=['define','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','lodash','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./userProfileResource.attributes'];(function(_0x19ff18,_0x5b13c5){var _0x27d9c4=function(_0x4c9d33){while(--_0x4c9d33){_0x19ff18['push'](_0x19ff18['shift']());}};_0x27d9c4(++_0x5b13c5);}(_0xa3b2,0x11d));var _0x2a3b=function(_0x23a079,_0xb8c9aa){_0x23a079=_0x23a079-0x0;var _0x53f2a5=_0xa3b2[_0x23a079];return _0x53f2a5;};'use strict';var _=require(_0x2a3b('0x0'));var util=require(_0x2a3b('0x1'));var logger=require(_0x2a3b('0x2'))('api');var moment=require(_0x2a3b('0x3'));var BPromise=require(_0x2a3b('0x4'));var rp=require(_0x2a3b('0x5'));var fs=require('fs');var path=require(_0x2a3b('0x6'));var rimraf=require('rimraf');var config=require(_0x2a3b('0x7'));var attributes=require(_0x2a3b('0x8'));module['exports']=function(_0x34085a,_0x592d04){return _0x34085a[_0x2a3b('0x9')](_0x2a3b('0xa'),attributes,{'tableName':_0x2a3b('0xb'),'paranoid':![],'indexes':[{'name':_0x2a3b('0xc'),'fields':['resourceId',_0x2a3b('0xd')]}],'timestamps':!![]});};