Built motion from commit bab6f49e.|2.6.17
[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 _0xd477=['UserProfileSection','user_profile_has_sections','sectionId','userProfileId','lodash','util','../../config/logger','api','moment','bluebird','path','../../config/environment','./userProfileSection.attributes','define'];(function(_0x23ff1b,_0x1653d4){var _0x530574=function(_0x5004ef){while(--_0x5004ef){_0x23ff1b['push'](_0x23ff1b['shift']());}};_0x530574(++_0x1653d4);}(_0xd477,0x66));var _0x7d47=function(_0x432582,_0x41bef5){_0x432582=_0x432582-0x0;var _0x51ac0a=_0xd477[_0x432582];return _0x51ac0a;};'use strict';var _=require(_0x7d47('0x0'));var util=require(_0x7d47('0x1'));var logger=require(_0x7d47('0x2'))(_0x7d47('0x3'));var moment=require(_0x7d47('0x4'));var BPromise=require(_0x7d47('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7d47('0x6'));var rimraf=require('rimraf');var config=require(_0x7d47('0x7'));var attributes=require(_0x7d47('0x8'));module['exports']=function(_0x384ad5,_0x1a1a3c){return _0x384ad5[_0x7d47('0x9')](_0x7d47('0xa'),attributes,{'tableName':_0x7d47('0xb'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x7d47('0xc'),_0x7d47('0xd')]}],'timestamps':!![]});};