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 _0xf222=['exports','define','UserProfileResource','user_profile_has_resources','resourceId','sectionId','lodash','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes'];(function(_0x5cf3d7,_0x26611b){var _0x318db5=function(_0x18bc6a){while(--_0x18bc6a){_0x5cf3d7['push'](_0x5cf3d7['shift']());}};_0x318db5(++_0x26611b);}(_0xf222,0x1d4));var _0x2f22=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0xf222[_0x502c7d];return _0x30b7ed;};'use strict';var _=require(_0x2f22('0x0'));var util=require('util');var logger=require(_0x2f22('0x1'))('api');var moment=require(_0x2f22('0x2'));var BPromise=require('bluebird');var rp=require(_0x2f22('0x3'));var fs=require('fs');var path=require(_0x2f22('0x4'));var rimraf=require(_0x2f22('0x5'));var config=require(_0x2f22('0x6'));var attributes=require(_0x2f22('0x7'));module[_0x2f22('0x8')]=function(_0x29e054,_0x10771f){return _0x29e054[_0x2f22('0x9')](_0x2f22('0xa'),attributes,{'tableName':_0x2f22('0xb'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x2f22('0xc'),_0x2f22('0xd')]}],'timestamps':!![]});};