Built motion from commit 3c2ce842.|2.6.31
[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 _0xed35=['lodash','util','api','moment','path','rimraf','./userProfileSection.attributes','UserProfileSection','compositeIndex','userProfileId'];(function(_0x4bfac3,_0x58324d){var _0x15f0f2=function(_0xf0c511){while(--_0xf0c511){_0x4bfac3['push'](_0x4bfac3['shift']());}};_0x15f0f2(++_0x58324d);}(_0xed35,0xaa));var _0x5ed3=function(_0x221968,_0xa87f20){_0x221968=_0x221968-0x0;var _0x501cac=_0xed35[_0x221968];return _0x501cac;};'use strict';var _=require(_0x5ed3('0x0'));var util=require(_0x5ed3('0x1'));var logger=require('../../config/logger')(_0x5ed3('0x2'));var moment=require(_0x5ed3('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x5ed3('0x4'));var rimraf=require(_0x5ed3('0x5'));var config=require('../../config/environment');var attributes=require(_0x5ed3('0x6'));module['exports']=function(_0x596a34,_0x1f4d1f){return _0x596a34['define'](_0x5ed3('0x7'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x5ed3('0x8'),'fields':['sectionId',_0x5ed3('0x9')]}],'timestamps':!![]});};