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 _0x5a48=['rimraf','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','lodash','util','bluebird','request-promise'];(function(_0x2f62aa,_0x108e95){var _0x1a341f=function(_0x3aedcf){while(--_0x3aedcf){_0x2f62aa['push'](_0x2f62aa['shift']());}};_0x1a341f(++_0x108e95);}(_0x5a48,0x1b8));var _0x85a4=function(_0x497d6d,_0xff7558){_0x497d6d=_0x497d6d-0x0;var _0x4a1d9a=_0x5a48[_0x497d6d];return _0x4a1d9a;};'use strict';var _=require(_0x85a4('0x0'));var util=require(_0x85a4('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x85a4('0x2'));var rp=require(_0x85a4('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x85a4('0x4'));var config=require('../../config/environment');var attributes=require(_0x85a4('0x5'));module[_0x85a4('0x6')]=function(_0x4cdf16,_0x502fab){return _0x4cdf16[_0x85a4('0x7')](_0x85a4('0x8'),attributes,{'tableName':_0x85a4('0x9'),'paranoid':![],'indexes':[{'name':_0x85a4('0xa'),'fields':['resourceId',_0x85a4('0xb')]}],'timestamps':!![]});};