Built motion from commit (unavailable).|2.5.21
[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 _0x1333=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','userProfileId','api'];(function(_0x71cd05,_0x36ac11){var _0x59c9e7=function(_0x5472cd){while(--_0x5472cd){_0x71cd05['push'](_0x71cd05['shift']());}};_0x59c9e7(++_0x36ac11);}(_0x1333,0xb5));var _0x3133=function(_0x527230,_0xdc83e8){_0x527230=_0x527230-0x0;var _0x2f6870=_0x1333[_0x527230];return _0x2f6870;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x3133('0x0'));var moment=require(_0x3133('0x1'));var BPromise=require(_0x3133('0x2'));var rp=require(_0x3133('0x3'));var fs=require('fs');var path=require(_0x3133('0x4'));var rimraf=require(_0x3133('0x5'));var config=require(_0x3133('0x6'));var attributes=require(_0x3133('0x7'));module[_0x3133('0x8')]=function(_0xb59937,_0x581cf3){return _0xb59937[_0x3133('0x9')](_0x3133('0xa'),attributes,{'tableName':_0x3133('0xb'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':['sectionId',_0x3133('0xc')]}],'timestamps':!![]});};