Built motion from commit (unavailable).|2.5.4
[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 _0xff5d=['user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','UserProfileSection'];(function(_0x1084af,_0x3c1eb2){var _0xe61732=function(_0x1daf63){while(--_0x1daf63){_0x1084af['push'](_0x1084af['shift']());}};_0xe61732(++_0x3c1eb2);}(_0xff5d,0xf4));var _0xdff5=function(_0x3e0913,_0x28e7a7){_0x3e0913=_0x3e0913-0x0;var _0x457825=_0xff5d[_0x3e0913];return _0x457825;};'use strict';var _=require(_0xdff5('0x0'));var util=require(_0xdff5('0x1'));var logger=require('../../config/logger')(_0xdff5('0x2'));var moment=require(_0xdff5('0x3'));var BPromise=require(_0xdff5('0x4'));var rp=require(_0xdff5('0x5'));var fs=require('fs');var path=require(_0xdff5('0x6'));var rimraf=require(_0xdff5('0x7'));var config=require(_0xdff5('0x8'));var attributes=require(_0xdff5('0x9'));module[_0xdff5('0xa')]=function(_0x454bb4,_0x3e5946){return _0x454bb4['define'](_0xdff5('0xb'),attributes,{'tableName':_0xdff5('0xc'),'paranoid':![],'indexes':[{'name':_0xdff5('0xd'),'fields':[_0xdff5('0xe'),_0xdff5('0xf')]}],'timestamps':!![]});};