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 _0xebe6=['rimraf','../../config/environment','define','UserProfileSection','user_profile_has_sections','sectionId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x2766c5,_0x5631a4){var _0x274ead=function(_0x33d932){while(--_0x33d932){_0x2766c5['push'](_0x2766c5['shift']());}};_0x274ead(++_0x5631a4);}(_0xebe6,0x13a));var _0x6ebe=function(_0x3b330e,_0x350e11){_0x3b330e=_0x3b330e-0x0;var _0xa61a79=_0xebe6[_0x3b330e];return _0xa61a79;};'use strict';var _=require(_0x6ebe('0x0'));var util=require(_0x6ebe('0x1'));var logger=require(_0x6ebe('0x2'))(_0x6ebe('0x3'));var moment=require(_0x6ebe('0x4'));var BPromise=require(_0x6ebe('0x5'));var rp=require(_0x6ebe('0x6'));var fs=require('fs');var path=require(_0x6ebe('0x7'));var rimraf=require(_0x6ebe('0x8'));var config=require(_0x6ebe('0x9'));var attributes=require('./userProfileSection.attributes');module['exports']=function(_0x1c3c2c,_0x2a63a5){return _0x1c3c2c[_0x6ebe('0xa')](_0x6ebe('0xb'),attributes,{'tableName':_0x6ebe('0xc'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x6ebe('0xd'),'userProfileId']}],'timestamps':!![]});};