e897c9737b6583029149fe4aa44c746a2ddd6b79
[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 _0x6003=['./userProfileSection.attributes','exports','UserProfileSection','user_profile_has_sections','compositeIndex','userProfileId','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0xbfc853,_0x349992){var _0x48733a=function(_0x429b06){while(--_0x429b06){_0xbfc853['push'](_0xbfc853['shift']());}};_0x48733a(++_0x349992);}(_0x6003,0xa0));var _0x3600=function(_0x290143,_0x230cb1){_0x290143=_0x290143-0x0;var _0x298b3f=_0x6003[_0x290143];return _0x298b3f;};'use strict';var _=require('lodash');var util=require(_0x3600('0x0'));var logger=require(_0x3600('0x1'))('api');var moment=require(_0x3600('0x2'));var BPromise=require(_0x3600('0x3'));var rp=require(_0x3600('0x4'));var fs=require('fs');var path=require(_0x3600('0x5'));var rimraf=require(_0x3600('0x6'));var config=require(_0x3600('0x7'));var attributes=require(_0x3600('0x8'));module[_0x3600('0x9')]=function(_0xd297ea,_0x4ba2e1){return _0xd297ea['define'](_0x3600('0xa'),attributes,{'tableName':_0x3600('0xb'),'paranoid':![],'indexes':[{'name':_0x3600('0xc'),'fields':['sectionId',_0x3600('0xd')]}],'timestamps':!![]});};