b2adc3eb70d88b6414571ac02b34991ebe7d4fbd
[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 _0xbd20=['exports','define','compositeIndex','sectionId','userProfileId','lodash','api','moment','bluebird','request-promise','path','../../config/environment','./userProfileSection.attributes'];(function(_0x9be28f,_0x231334){var _0xa9f52d=function(_0x239dad){while(--_0x239dad){_0x9be28f['push'](_0x9be28f['shift']());}};_0xa9f52d(++_0x231334);}(_0xbd20,0x14a));var _0x0bd2=function(_0x7488c6,_0x1b2889){_0x7488c6=_0x7488c6-0x0;var _0x50fafa=_0xbd20[_0x7488c6];return _0x50fafa;};'use strict';var _=require(_0x0bd2('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x0bd2('0x1'));var moment=require(_0x0bd2('0x2'));var BPromise=require(_0x0bd2('0x3'));var rp=require(_0x0bd2('0x4'));var fs=require('fs');var path=require(_0x0bd2('0x5'));var rimraf=require('rimraf');var config=require(_0x0bd2('0x6'));var attributes=require(_0x0bd2('0x7'));module[_0x0bd2('0x8')]=function(_0x550f03,_0xe39613){return _0x550f03[_0x0bd2('0x9')]('UserProfileSection',attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x0bd2('0xa'),'fields':[_0x0bd2('0xb'),_0x0bd2('0xc')]}],'timestamps':!![]});};