Built motion from commit da617fac.|2.6.6
[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 _0xfbbc=['compositeIndex','userProfileId','lodash','util','../../config/logger','api','request-promise','rimraf','./userProfileSection.attributes','exports','UserProfileSection','user_profile_has_sections'];(function(_0xc62602,_0x7bed84){var _0x6191e7=function(_0x1f7984){while(--_0x1f7984){_0xc62602['push'](_0xc62602['shift']());}};_0x6191e7(++_0x7bed84);}(_0xfbbc,0x86));var _0xcfbb=function(_0x39930f,_0x17fe89){_0x39930f=_0x39930f-0x0;var _0x117ab9=_0xfbbc[_0x39930f];return _0x117ab9;};'use strict';var _=require(_0xcfbb('0x0'));var util=require(_0xcfbb('0x1'));var logger=require(_0xcfbb('0x2'))(_0xcfbb('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xcfbb('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcfbb('0x5'));var config=require('../../config/environment');var attributes=require(_0xcfbb('0x6'));module[_0xcfbb('0x7')]=function(_0x496729,_0x2755b3){return _0x496729['define'](_0xcfbb('0x8'),attributes,{'tableName':_0xcfbb('0x9'),'paranoid':![],'indexes':[{'name':_0xcfbb('0xa'),'fields':['sectionId',_0xcfbb('0xb')]}],'timestamps':!![]});};