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 _0x5b91=['sectionId','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId'];(function(_0x135d5c,_0x4ce30b){var _0x56efaf=function(_0x43d225){while(--_0x43d225){_0x135d5c['push'](_0x135d5c['shift']());}};_0x56efaf(++_0x4ce30b);}(_0x5b91,0x1a5));var _0x15b9=function(_0x26d6d9,_0x431cb8){_0x26d6d9=_0x26d6d9-0x0;var _0x1b4875=_0x5b91[_0x26d6d9];return _0x1b4875;};'use strict';var _=require('lodash');var util=require(_0x15b9('0x0'));var logger=require(_0x15b9('0x1'))('api');var moment=require(_0x15b9('0x2'));var BPromise=require(_0x15b9('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x15b9('0x4'));var rimraf=require(_0x15b9('0x5'));var config=require(_0x15b9('0x6'));var attributes=require('./userProfileResource.attributes');module[_0x15b9('0x7')]=function(_0x5a694b,_0x1ee164){return _0x5a694b[_0x15b9('0x8')](_0x15b9('0x9'),attributes,{'tableName':_0x15b9('0xa'),'paranoid':![],'indexes':[{'name':_0x15b9('0xb'),'fields':[_0x15b9('0xc'),_0x15b9('0xd')]}],'timestamps':!![]});};