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 _0x13ca=['moment','request-promise','path','../../config/environment','./userProfileResource.attributes','exports','user_profile_has_resources','util'];(function(_0xf71120,_0x25b7f9){var _0xbe2fd3=function(_0x1acbdd){while(--_0x1acbdd){_0xf71120['push'](_0xf71120['shift']());}};_0xbe2fd3(++_0x25b7f9);}(_0x13ca,0xa7));var _0xa13c=function(_0x2e3486,_0x1d2b49){_0x2e3486=_0x2e3486-0x0;var _0xf3437a=_0x13ca[_0x2e3486];return _0xf3437a;};'use strict';var _=require('lodash');var util=require(_0xa13c('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xa13c('0x1'));var BPromise=require('bluebird');var rp=require(_0xa13c('0x2'));var fs=require('fs');var path=require(_0xa13c('0x3'));var rimraf=require('rimraf');var config=require(_0xa13c('0x4'));var attributes=require(_0xa13c('0x5'));module[_0xa13c('0x6')]=function(_0x4a36ee,_0x4564e2){return _0x4a36ee['define']('UserProfileResource',attributes,{'tableName':_0xa13c('0x7'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':['resourceId','sectionId']}],'timestamps':!![]});};