Built motion from commit 3c2ce842.|2.6.31
[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 _0xf4e2=['api','moment','bluebird','request-promise','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','util'];(function(_0x1c06f4,_0x2feba6){var _0x1a727e=function(_0x2e83af){while(--_0x2e83af){_0x1c06f4['push'](_0x1c06f4['shift']());}};_0x1a727e(++_0x2feba6);}(_0xf4e2,0xa3));var _0x2f4e=function(_0x1f1feb,_0x5782e1){_0x1f1feb=_0x1f1feb-0x0;var _0x43ca65=_0xf4e2[_0x1f1feb];return _0x43ca65;};'use strict';var _=require(_0x2f4e('0x0'));var util=require(_0x2f4e('0x1'));var logger=require('../../config/logger')(_0x2f4e('0x2'));var moment=require(_0x2f4e('0x3'));var BPromise=require(_0x2f4e('0x4'));var rp=require(_0x2f4e('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2f4e('0x6'));var config=require(_0x2f4e('0x7'));var attributes=require(_0x2f4e('0x8'));module[_0x2f4e('0x9')]=function(_0x6c3abc,_0x45abb9){return _0x6c3abc[_0x2f4e('0xa')]('UserProfileSection',attributes,{'tableName':_0x2f4e('0xb'),'paranoid':![],'indexes':[{'name':_0x2f4e('0xc'),'fields':[_0x2f4e('0xd'),_0x2f4e('0xe')]}],'timestamps':!![]});};