Built motion from commit (unavailable).|2.5.23
[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 _0x1e4f=['path','rimraf','./userProfileSection.attributes','define','UserProfileSection','compositeIndex','sectionId','userProfileId','lodash','../../config/logger','moment','bluebird'];(function(_0x4f5513,_0x4dec99){var _0x5bc0c0=function(_0x4da6a6){while(--_0x4da6a6){_0x4f5513['push'](_0x4f5513['shift']());}};_0x5bc0c0(++_0x4dec99);}(_0x1e4f,0x1a0));var _0xf1e4=function(_0x443cc5,_0x237fca){_0x443cc5=_0x443cc5-0x0;var _0x6271e9=_0x1e4f[_0x443cc5];return _0x6271e9;};'use strict';var _=require(_0xf1e4('0x0'));var util=require('util');var logger=require(_0xf1e4('0x1'))('api');var moment=require(_0xf1e4('0x2'));var BPromise=require(_0xf1e4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf1e4('0x4'));var rimraf=require(_0xf1e4('0x5'));var config=require('../../config/environment');var attributes=require(_0xf1e4('0x6'));module['exports']=function(_0x56c559,_0x25770a){return _0x56c559[_0xf1e4('0x7')](_0xf1e4('0x8'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0xf1e4('0x9'),'fields':[_0xf1e4('0xa'),_0xf1e4('0xb')]}],'timestamps':!![]});};