5110d2e341406c5c53eebdd7f5395cf893d0edce
[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 _0xf0f4=['UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x2751a7,_0x507892){var _0x3dbd6c=function(_0x31b3d3){while(--_0x31b3d3){_0x2751a7['push'](_0x2751a7['shift']());}};_0x3dbd6c(++_0x507892);}(_0xf0f4,0x1d3));var _0x4f0f=function(_0xa9591d,_0x19eb7f){_0xa9591d=_0xa9591d-0x0;var _0x158302=_0xf0f4[_0xa9591d];return _0x158302;};'use strict';var _=require(_0x4f0f('0x0'));var util=require(_0x4f0f('0x1'));var logger=require(_0x4f0f('0x2'))(_0x4f0f('0x3'));var moment=require(_0x4f0f('0x4'));var BPromise=require(_0x4f0f('0x5'));var rp=require(_0x4f0f('0x6'));var fs=require('fs');var path=require(_0x4f0f('0x7'));var rimraf=require('rimraf');var config=require(_0x4f0f('0x8'));var attributes=require('./userProfileSection.attributes');module['exports']=function(_0x21ee5d,_0x53e4b5){return _0x21ee5d['define'](_0x4f0f('0x9'),attributes,{'tableName':_0x4f0f('0xa'),'paranoid':![],'indexes':[{'name':_0x4f0f('0xb'),'fields':[_0x4f0f('0xc'),_0x4f0f('0xd')]}],'timestamps':!![]});};