d22169011a46231f47e334809519c9cf700af627
[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 _0x74e4=['userProfileId','lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','sectionId'];(function(_0x1f03f9,_0x1824d0){var _0x562b31=function(_0x457f08){while(--_0x457f08){_0x1f03f9['push'](_0x1f03f9['shift']());}};_0x562b31(++_0x1824d0);}(_0x74e4,0xc4));var _0x474e=function(_0x954bda,_0x58ba33){_0x954bda=_0x954bda-0x0;var _0x471a26=_0x74e4[_0x954bda];return _0x471a26;};'use strict';var _=require(_0x474e('0x0'));var util=require(_0x474e('0x1'));var logger=require(_0x474e('0x2'))('api');var moment=require('moment');var BPromise=require(_0x474e('0x3'));var rp=require(_0x474e('0x4'));var fs=require('fs');var path=require(_0x474e('0x5'));var rimraf=require(_0x474e('0x6'));var config=require(_0x474e('0x7'));var attributes=require(_0x474e('0x8'));module[_0x474e('0x9')]=function(_0x5a8a5c,_0xbc3a58){return _0x5a8a5c[_0x474e('0xa')](_0x474e('0xb'),attributes,{'tableName':_0x474e('0xc'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x474e('0xd'),_0x474e('0xe')]}],'timestamps':!![]});};