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 _0x6085=['../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','lodash','util','bluebird','request-promise','path','rimraf'];(function(_0x47fd17,_0x4f7037){var _0x353a4b=function(_0x16badc){while(--_0x16badc){_0x47fd17['push'](_0x47fd17['shift']());}};_0x353a4b(++_0x4f7037);}(_0x6085,0x166));var _0x5608=function(_0x28e351,_0x3ec4d1){_0x28e351=_0x28e351-0x0;var _0x2bab4a=_0x6085[_0x28e351];return _0x2bab4a;};'use strict';var _=require(_0x5608('0x0'));var util=require(_0x5608('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x5608('0x2'));var rp=require(_0x5608('0x3'));var fs=require('fs');var path=require(_0x5608('0x4'));var rimraf=require(_0x5608('0x5'));var config=require(_0x5608('0x6'));var attributes=require(_0x5608('0x7'));module[_0x5608('0x8')]=function(_0x56df35,_0x114ce3){return _0x56df35[_0x5608('0x9')](_0x5608('0xa'),attributes,{'tableName':_0x5608('0xb'),'paranoid':![],'indexes':[{'name':_0x5608('0xc'),'fields':[_0x5608('0xd'),'sectionId']}],'timestamps':!![]});};