Built motion from commit ffdca78c.|2.6.24
[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 _0x27a3=['lodash','util','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','UserProfileSection','user_profile_has_sections','sectionId','userProfileId'];(function(_0x313c96,_0x3cee6e){var _0x522f53=function(_0x8961e){while(--_0x8961e){_0x313c96['push'](_0x313c96['shift']());}};_0x522f53(++_0x3cee6e);}(_0x27a3,0x11e));var _0x327a=function(_0x124561,_0x25fdde){_0x124561=_0x124561-0x0;var _0x50723f=_0x27a3[_0x124561];return _0x50723f;};'use strict';var _=require(_0x327a('0x0'));var util=require(_0x327a('0x1'));var logger=require(_0x327a('0x2'))('api');var moment=require(_0x327a('0x3'));var BPromise=require('bluebird');var rp=require(_0x327a('0x4'));var fs=require('fs');var path=require(_0x327a('0x5'));var rimraf=require(_0x327a('0x6'));var config=require(_0x327a('0x7'));var attributes=require(_0x327a('0x8'));module['exports']=function(_0x56ad3c,_0x5a0e9c){return _0x56ad3c['define'](_0x327a('0x9'),attributes,{'tableName':_0x327a('0xa'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x327a('0xb'),_0x327a('0xc')]}],'timestamps':!![]});};