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 _0x9d99=['bluebird','request-promise','path','../../config/environment','define','UserProfileSection','user_profile_has_sections','compositeIndex','userProfileId','../../config/logger','moment'];(function(_0x56740a,_0x568894){var _0x257144=function(_0x2b8cc5){while(--_0x2b8cc5){_0x56740a['push'](_0x56740a['shift']());}};_0x257144(++_0x568894);}(_0x9d99,0xfb));var _0x99d9=function(_0x4b7895,_0x3c4f5d){_0x4b7895=_0x4b7895-0x0;var _0x264180=_0x9d99[_0x4b7895];return _0x264180;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x99d9('0x0'))('api');var moment=require(_0x99d9('0x1'));var BPromise=require(_0x99d9('0x2'));var rp=require(_0x99d9('0x3'));var fs=require('fs');var path=require(_0x99d9('0x4'));var rimraf=require('rimraf');var config=require(_0x99d9('0x5'));var attributes=require('./userProfileSection.attributes');module['exports']=function(_0x563a37,_0x5a942c){return _0x563a37[_0x99d9('0x6')](_0x99d9('0x7'),attributes,{'tableName':_0x99d9('0x8'),'paranoid':![],'indexes':[{'name':_0x99d9('0x9'),'fields':['sectionId',_0x99d9('0xa')]}],'timestamps':!![]});};