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 _0x69b7=['../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','resourceId','sectionId','util'];(function(_0x680821,_0x23e67f){var _0x3f132c=function(_0x1bbcea){while(--_0x1bbcea){_0x680821['push'](_0x680821['shift']());}};_0x3f132c(++_0x23e67f);}(_0x69b7,0x68));var _0x769b=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x69b7[_0x3947c9];return _0x2e7871;};'use strict';var _=require('lodash');var util=require(_0x769b('0x0'));var logger=require(_0x769b('0x1'))(_0x769b('0x2'));var moment=require(_0x769b('0x3'));var BPromise=require(_0x769b('0x4'));var rp=require(_0x769b('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x769b('0x6'));var config=require(_0x769b('0x7'));var attributes=require(_0x769b('0x8'));module[_0x769b('0x9')]=function(_0x3ae1cf,_0x1cbe99){return _0x3ae1cf[_0x769b('0xa')](_0x769b('0xb'),attributes,{'tableName':_0x769b('0xc'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x769b('0xd'),_0x769b('0xe')]}],'timestamps':!![]});};