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 _0x9cba=['sectionId','util','request-promise','rimraf','../../config/environment','./userProfileSection.attributes','exports','UserProfileSection','user_profile_has_sections','compositeIndex'];(function(_0x5f2282,_0x560029){var _0xb850ce=function(_0x3e85c0){while(--_0x3e85c0){_0x5f2282['push'](_0x5f2282['shift']());}};_0xb850ce(++_0x560029);}(_0x9cba,0x1af));var _0xa9cb=function(_0x334841,_0x2bbc4c){_0x334841=_0x334841-0x0;var _0x5beb4b=_0x9cba[_0x334841];return _0x5beb4b;};'use strict';var _=require('lodash');var util=require(_0xa9cb('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xa9cb('0x1'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa9cb('0x2'));var config=require(_0xa9cb('0x3'));var attributes=require(_0xa9cb('0x4'));module[_0xa9cb('0x5')]=function(_0x46397e,_0x3069a3){return _0x46397e['define'](_0xa9cb('0x6'),attributes,{'tableName':_0xa9cb('0x7'),'paranoid':![],'indexes':[{'name':_0xa9cb('0x8'),'fields':[_0xa9cb('0x9'),'userProfileId']}],'timestamps':!![]});};