Built motion from commit 994c64e1.|2.6.1
[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 _0x1046=['request-promise','../../config/environment','./userProfileSection.attributes','exports','define','user_profile_has_sections','compositeIndex','sectionId','lodash','util','../../config/logger','moment','bluebird'];(function(_0x27a6ca,_0x54f576){var _0x8bc6a3=function(_0x3d620d){while(--_0x3d620d){_0x27a6ca['push'](_0x27a6ca['shift']());}};_0x8bc6a3(++_0x54f576);}(_0x1046,0x126));var _0x6104=function(_0x3178ad,_0x2e4d4a){_0x3178ad=_0x3178ad-0x0;var _0x3718f8=_0x1046[_0x3178ad];return _0x3718f8;};'use strict';var _=require(_0x6104('0x0'));var util=require(_0x6104('0x1'));var logger=require(_0x6104('0x2'))('api');var moment=require(_0x6104('0x3'));var BPromise=require(_0x6104('0x4'));var rp=require(_0x6104('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x6104('0x6'));var attributes=require(_0x6104('0x7'));module[_0x6104('0x8')]=function(_0x3a7281,_0xd14236){return _0x3a7281[_0x6104('0x9')]('UserProfileSection',attributes,{'tableName':_0x6104('0xa'),'paranoid':![],'indexes':[{'name':_0x6104('0xb'),'fields':[_0x6104('0xc'),'userProfileId']}],'timestamps':!![]});};