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 _0x3897=['./userProfileResource.attributes','exports','define','UserProfileResource','compositeIndex','api','request-promise','path'];(function(_0x53eac0,_0x13510a){var _0x468e04=function(_0xae9587){while(--_0xae9587){_0x53eac0['push'](_0x53eac0['shift']());}};_0x468e04(++_0x13510a);}(_0x3897,0xa5));var _0x7389=function(_0x32b993,_0x1c5989){_0x32b993=_0x32b993-0x0;var _0x482780=_0x3897[_0x32b993];return _0x482780;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x7389('0x0'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x7389('0x1'));var fs=require('fs');var path=require(_0x7389('0x2'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x7389('0x3'));module[_0x7389('0x4')]=function(_0xc271ca,_0x181605){return _0xc271ca[_0x7389('0x5')](_0x7389('0x6'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x7389('0x7'),'fields':['resourceId','sectionId']}],'timestamps':!![]});};