Built motion from commit 19a84241.|2.5.34
[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 _0xfdb1=['bluebird','request-promise','path','../../config/environment','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','userProfileId','lodash','util','api','moment'];(function(_0x480bc8,_0x1fac40){var _0x28c245=function(_0x22a049){while(--_0x22a049){_0x480bc8['push'](_0x480bc8['shift']());}};_0x28c245(++_0x1fac40);}(_0xfdb1,0x192));var _0x1fdb=function(_0x51aa8a,_0x35c0f3){_0x51aa8a=_0x51aa8a-0x0;var _0x34e888=_0xfdb1[_0x51aa8a];return _0x34e888;};'use strict';var _=require(_0x1fdb('0x0'));var util=require(_0x1fdb('0x1'));var logger=require('../../config/logger')(_0x1fdb('0x2'));var moment=require(_0x1fdb('0x3'));var BPromise=require(_0x1fdb('0x4'));var rp=require(_0x1fdb('0x5'));var fs=require('fs');var path=require(_0x1fdb('0x6'));var rimraf=require('rimraf');var config=require(_0x1fdb('0x7'));var attributes=require('./userProfileSection.attributes');module[_0x1fdb('0x8')]=function(_0x4045b9,_0x3a1532){return _0x4045b9[_0x1fdb('0x9')](_0x1fdb('0xa'),attributes,{'tableName':_0x1fdb('0xb'),'paranoid':![],'indexes':[{'name':_0x1fdb('0xc'),'fields':['sectionId',_0x1fdb('0xd')]}],'timestamps':!![]});};