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 _0x7a3d=['user_profile_has_resources','compositeIndex','resourceId','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','UserProfileResource'];(function(_0x286034,_0x1973cd){var _0x26cd90=function(_0x5f456d){while(--_0x5f456d){_0x286034['push'](_0x286034['shift']());}};_0x26cd90(++_0x1973cd);}(_0x7a3d,0x8f));var _0xd7a3=function(_0x49bfe7,_0x2cb098){_0x49bfe7=_0x49bfe7-0x0;var _0x42c87f=_0x7a3d[_0x49bfe7];return _0x42c87f;};'use strict';var _=require('lodash');var util=require(_0xd7a3('0x0'));var logger=require(_0xd7a3('0x1'))('api');var moment=require(_0xd7a3('0x2'));var BPromise=require(_0xd7a3('0x3'));var rp=require(_0xd7a3('0x4'));var fs=require('fs');var path=require(_0xd7a3('0x5'));var rimraf=require(_0xd7a3('0x6'));var config=require(_0xd7a3('0x7'));var attributes=require('./userProfileResource.attributes');module[_0xd7a3('0x8')]=function(_0x2ae579,_0x149397){return _0x2ae579[_0xd7a3('0x9')](_0xd7a3('0xa'),attributes,{'tableName':_0xd7a3('0xb'),'paranoid':![],'indexes':[{'name':_0xd7a3('0xc'),'fields':[_0xd7a3('0xd'),'sectionId']}],'timestamps':!![]});};