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 _0x1c03=['UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId','lodash','util','bluebird','request-promise','path','../../config/environment','./userProfileResource.attributes','define'];(function(_0x2fb84a,_0x172d92){var _0x1e4eb2=function(_0x289a4a){while(--_0x289a4a){_0x2fb84a['push'](_0x2fb84a['shift']());}};_0x1e4eb2(++_0x172d92);}(_0x1c03,0x171));var _0x31c0=function(_0x21481c,_0x1b51ba){_0x21481c=_0x21481c-0x0;var _0x5dd77a=_0x1c03[_0x21481c];return _0x5dd77a;};'use strict';var _=require(_0x31c0('0x0'));var util=require(_0x31c0('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x31c0('0x2'));var rp=require(_0x31c0('0x3'));var fs=require('fs');var path=require(_0x31c0('0x4'));var rimraf=require('rimraf');var config=require(_0x31c0('0x5'));var attributes=require(_0x31c0('0x6'));module['exports']=function(_0x311471,_0x2209a1){return _0x311471[_0x31c0('0x7')](_0x31c0('0x8'),attributes,{'tableName':_0x31c0('0x9'),'paranoid':![],'indexes':[{'name':_0x31c0('0xa'),'fields':[_0x31c0('0xb'),_0x31c0('0xc')]}],'timestamps':!![]});};