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 _0x2b9a=['exports','define','user_profile_has_resources','compositeIndex','resourceId','sectionId','lodash','util','../../config/logger','path','rimraf','./userProfileResource.attributes'];(function(_0x360739,_0x2ec1b2){var _0x3e23a1=function(_0x105b37){while(--_0x105b37){_0x360739['push'](_0x360739['shift']());}};_0x3e23a1(++_0x2ec1b2);}(_0x2b9a,0x156));var _0xa2b9=function(_0x5fd116,_0x5c5cf8){_0x5fd116=_0x5fd116-0x0;var _0xdbe5c5=_0x2b9a[_0x5fd116];return _0xdbe5c5;};'use strict';var _=require(_0xa2b9('0x0'));var util=require(_0xa2b9('0x1'));var logger=require(_0xa2b9('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xa2b9('0x3'));var rimraf=require(_0xa2b9('0x4'));var config=require('../../config/environment');var attributes=require(_0xa2b9('0x5'));module[_0xa2b9('0x6')]=function(_0x2750e6,_0x63cbbb){return _0x2750e6[_0xa2b9('0x7')]('UserProfileResource',attributes,{'tableName':_0xa2b9('0x8'),'paranoid':![],'indexes':[{'name':_0xa2b9('0x9'),'fields':[_0xa2b9('0xa'),_0xa2b9('0xb')]}],'timestamps':!![]});};