Built motion from commit (unavailable).|2.5.8
[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 _0xbd1d=['../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','util','../../config/logger','api','bluebird','request-promise','path'];(function(_0x21b416,_0x404c12){var _0x20845a=function(_0x41146c){while(--_0x41146c){_0x21b416['push'](_0x21b416['shift']());}};_0x20845a(++_0x404c12);}(_0xbd1d,0x169));var _0xdbd1=function(_0x4848d,_0x2f98be){_0x4848d=_0x4848d-0x0;var _0x2d2462=_0xbd1d[_0x4848d];return _0x2d2462;};'use strict';var _=require(_0xdbd1('0x0'));var util=require(_0xdbd1('0x1'));var logger=require(_0xdbd1('0x2'))(_0xdbd1('0x3'));var moment=require('moment');var BPromise=require(_0xdbd1('0x4'));var rp=require(_0xdbd1('0x5'));var fs=require('fs');var path=require(_0xdbd1('0x6'));var rimraf=require('rimraf');var config=require(_0xdbd1('0x7'));var attributes=require(_0xdbd1('0x8'));module[_0xdbd1('0x9')]=function(_0x146c39,_0xe9b606){return _0x146c39[_0xdbd1('0xa')](_0xdbd1('0xb'),attributes,{'tableName':_0xdbd1('0xc'),'paranoid':![],'indexes':[{'name':_0xdbd1('0xd'),'fields':[_0xdbd1('0xe'),_0xdbd1('0xf')]}],'timestamps':!![]});};