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 _0x8dd7=['exports','UserProfileResource','user_profile_has_resources','compositeIndex','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x8ca327,_0x4a9905){var _0x585b21=function(_0x56788e){while(--_0x56788e){_0x8ca327['push'](_0x8ca327['shift']());}};_0x585b21(++_0x4a9905);}(_0x8dd7,0x1d8));var _0x78dd=function(_0x2b26c5,_0x547bea){_0x2b26c5=_0x2b26c5-0x0;var _0xfc7f7f=_0x8dd7[_0x2b26c5];return _0xfc7f7f;};'use strict';var _=require(_0x78dd('0x0'));var util=require(_0x78dd('0x1'));var logger=require(_0x78dd('0x2'))('api');var moment=require(_0x78dd('0x3'));var BPromise=require(_0x78dd('0x4'));var rp=require(_0x78dd('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x78dd('0x6'));var config=require(_0x78dd('0x7'));var attributes=require('./userProfileResource.attributes');module[_0x78dd('0x8')]=function(_0x58b323,_0x3bb120){return _0x58b323['define'](_0x78dd('0x9'),attributes,{'tableName':_0x78dd('0xa'),'paranoid':![],'indexes':[{'name':_0x78dd('0xb'),'fields':['resourceId','sectionId']}],'timestamps':!![]});};