6b7a02d498621d3fae09fd6a5ee90bc2f06a7d36
[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 _0x7b96=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','sectionId','userProfileId','lodash','util','../../config/logger','api'];(function(_0x50fcc4,_0x2a476b){var _0x1d9c9f=function(_0xe9e5a5){while(--_0xe9e5a5){_0x50fcc4['push'](_0x50fcc4['shift']());}};_0x1d9c9f(++_0x2a476b);}(_0x7b96,0x92));var _0x67b9=function(_0x29107b,_0x12524a){_0x29107b=_0x29107b-0x0;var _0x4759be=_0x7b96[_0x29107b];return _0x4759be;};'use strict';var _=require(_0x67b9('0x0'));var util=require(_0x67b9('0x1'));var logger=require(_0x67b9('0x2'))(_0x67b9('0x3'));var moment=require(_0x67b9('0x4'));var BPromise=require(_0x67b9('0x5'));var rp=require(_0x67b9('0x6'));var fs=require('fs');var path=require(_0x67b9('0x7'));var rimraf=require(_0x67b9('0x8'));var config=require(_0x67b9('0x9'));var attributes=require(_0x67b9('0xa'));module[_0x67b9('0xb')]=function(_0x2f0609,_0x8cce65){return _0x2f0609[_0x67b9('0xc')]('UserProfileSection',attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x67b9('0xd'),_0x67b9('0xe')]}],'timestamps':!![]});};