Built motion from commit 0900f080.|2.5.45
[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 _0xc396=['path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','sectionId','lodash','../../config/logger','api','request-promise'];(function(_0x3637c2,_0x3a2837){var _0xc43ad=function(_0x1572ea){while(--_0x1572ea){_0x3637c2['push'](_0x3637c2['shift']());}};_0xc43ad(++_0x3a2837);}(_0xc396,0x127));var _0x6c39=function(_0x1f20f5,_0x37ab6a){_0x1f20f5=_0x1f20f5-0x0;var _0x533e5a=_0xc396[_0x1f20f5];return _0x533e5a;};'use strict';var _=require(_0x6c39('0x0'));var util=require('util');var logger=require(_0x6c39('0x1'))(_0x6c39('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x6c39('0x3'));var fs=require('fs');var path=require(_0x6c39('0x4'));var rimraf=require(_0x6c39('0x5'));var config=require(_0x6c39('0x6'));var attributes=require(_0x6c39('0x7'));module[_0x6c39('0x8')]=function(_0x180ed0,_0x3c30cb){return _0x180ed0[_0x6c39('0x9')](_0x6c39('0xa'),attributes,{'tableName':_0x6c39('0xb'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x6c39('0xc'),'userProfileId']}],'timestamps':!![]});};