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 _0x0cf3=['exports','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','moment','bluebird','request-promise','path','rimraf','./userProfileSection.attributes'];(function(_0x54de3a,_0x2e7a12){var _0x5b8b83=function(_0x55b15b){while(--_0x55b15b){_0x54de3a['push'](_0x54de3a['shift']());}};_0x5b8b83(++_0x2e7a12);}(_0x0cf3,0x95));var _0x30cf=function(_0x16ad84,_0x4a8bc4){_0x16ad84=_0x16ad84-0x0;var _0x4801e4=_0x0cf3[_0x16ad84];return _0x4801e4;};'use strict';var _=require(_0x30cf('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x30cf('0x1'));var BPromise=require(_0x30cf('0x2'));var rp=require(_0x30cf('0x3'));var fs=require('fs');var path=require(_0x30cf('0x4'));var rimraf=require(_0x30cf('0x5'));var config=require('../../config/environment');var attributes=require(_0x30cf('0x6'));module[_0x30cf('0x7')]=function(_0x48e838,_0x70c954){return _0x48e838['define'](_0x30cf('0x8'),attributes,{'tableName':_0x30cf('0x9'),'paranoid':![],'indexes':[{'name':_0x30cf('0xa'),'fields':[_0x30cf('0xb'),_0x30cf('0xc')]}],'timestamps':!![]});};