51223ec49377176c0b5adfaf1c83c22541897872
[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 _0x9c99=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','lodash','../../config/logger'];(function(_0x5b2011,_0x59cd2e){var _0xca3680=function(_0x53f4d9){while(--_0x53f4d9){_0x5b2011['push'](_0x5b2011['shift']());}};_0xca3680(++_0x59cd2e);}(_0x9c99,0xdf));var _0x99c9=function(_0x3909fc,_0xe12bde){_0x3909fc=_0x3909fc-0x0;var _0x2226d8=_0x9c99[_0x3909fc];return _0x2226d8;};'use strict';var _=require(_0x99c9('0x0'));var util=require('util');var logger=require(_0x99c9('0x1'))(_0x99c9('0x2'));var moment=require(_0x99c9('0x3'));var BPromise=require(_0x99c9('0x4'));var rp=require(_0x99c9('0x5'));var fs=require('fs');var path=require(_0x99c9('0x6'));var rimraf=require(_0x99c9('0x7'));var config=require(_0x99c9('0x8'));var attributes=require(_0x99c9('0x9'));module['exports']=function(_0x3d70ef,_0x3b2e8e){return _0x3d70ef[_0x99c9('0xa')](_0x99c9('0xb'),attributes,{'tableName':_0x99c9('0xc'),'paranoid':![],'indexes':[{'name':_0x99c9('0xd'),'fields':[_0x99c9('0xe'),'userProfileId']}],'timestamps':!![]});};