794649e00c3737a666a34583ade341326d1a8506
[motion2.git] / server / api / userProfileSection / userProfileSection.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x7f4b=['define','UserProfileSection','user_profile_has_sections','compositeIndex','lodash','util','moment','bluebird','rimraf','../../config/environment','./userProfileSection.attributes'];(function(_0x35a472,_0x12a3df){var _0x7d3242=function(_0x11b222){while(--_0x11b222){_0x35a472['push'](_0x35a472['shift']());}};_0x7d3242(++_0x12a3df);}(_0x7f4b,0x1d2));var _0xb7f4=function(_0x3928a4,_0x4cf10e){_0x3928a4=_0x3928a4-0x0;var _0x2a029e=_0x7f4b[_0x3928a4];return _0x2a029e;};'use strict';var _=require(_0xb7f4('0x0'));var util=require(_0xb7f4('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xb7f4('0x2'));var BPromise=require(_0xb7f4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xb7f4('0x4'));var config=require(_0xb7f4('0x5'));var attributes=require(_0xb7f4('0x6'));module['exports']=function(_0x11b6aa,_0x531487){return _0x11b6aa[_0xb7f4('0x7')](_0xb7f4('0x8'),attributes,{'tableName':_0xb7f4('0x9'),'paranoid':![],'indexes':[{'name':_0xb7f4('0xa'),'fields':['sectionId','userProfileId']}],'timestamps':!![]});};