76d4fc24fe5c7b5484cb19242d74748b3802ca94
[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 _0x8d7b=['lodash','util','../../config/logger','api','bluebird','path','../../config/environment','./userProfileSection.attributes','exports','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId'];(function(_0x2c341e,_0x414d11){var _0x43c1e8=function(_0xe783f3){while(--_0xe783f3){_0x2c341e['push'](_0x2c341e['shift']());}};_0x43c1e8(++_0x414d11);}(_0x8d7b,0x70));var _0xb8d7=function(_0x303b88,_0x18c9af){_0x303b88=_0x303b88-0x0;var _0xe1a7d8=_0x8d7b[_0x303b88];return _0xe1a7d8;};'use strict';var _=require(_0xb8d7('0x0'));var util=require(_0xb8d7('0x1'));var logger=require(_0xb8d7('0x2'))(_0xb8d7('0x3'));var moment=require('moment');var BPromise=require(_0xb8d7('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb8d7('0x5'));var rimraf=require('rimraf');var config=require(_0xb8d7('0x6'));var attributes=require(_0xb8d7('0x7'));module[_0xb8d7('0x8')]=function(_0xdde2a4,_0x2dea0c){return _0xdde2a4['define'](_0xb8d7('0x9'),attributes,{'tableName':_0xb8d7('0xa'),'paranoid':![],'indexes':[{'name':_0xb8d7('0xb'),'fields':[_0xb8d7('0xc'),_0xb8d7('0xd')]}],'timestamps':!![]});};