f049cc359683bfffa0caa9b0da1f580754022356
[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 _0x976a=['exports','define','user_profile_has_sections','compositeIndex','userProfileId','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x5a5113,_0x1c008b){var _0x16a596=function(_0x2726d8){while(--_0x2726d8){_0x5a5113['push'](_0x5a5113['shift']());}};_0x16a596(++_0x1c008b);}(_0x976a,0x1ef));var _0xa976=function(_0x539d7b,_0x5f2eba){_0x539d7b=_0x539d7b-0x0;var _0x31953c=_0x976a[_0x539d7b];return _0x31953c;};'use strict';var _=require(_0xa976('0x0'));var util=require(_0xa976('0x1'));var logger=require(_0xa976('0x2'))('api');var moment=require(_0xa976('0x3'));var BPromise=require(_0xa976('0x4'));var rp=require(_0xa976('0x5'));var fs=require('fs');var path=require(_0xa976('0x6'));var rimraf=require(_0xa976('0x7'));var config=require(_0xa976('0x8'));var attributes=require('./userProfileSection.attributes');module[_0xa976('0x9')]=function(_0x2055e3,_0x446813){return _0x2055e3[_0xa976('0xa')]('UserProfileSection',attributes,{'tableName':_0xa976('0xb'),'paranoid':![],'indexes':[{'name':_0xa976('0xc'),'fields':['sectionId',_0xa976('0xd')]}],'timestamps':!![]});};