19b70d0dfc003523e3f6af163cf22fc816c848df
[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 _0x37a9=['api','bluebird','request-promise','path','rimraf','./userProfileSection.attributes','compositeIndex','sectionId','userProfileId','util','../../config/logger'];(function(_0x15f426,_0x6d0cfe){var _0x403902=function(_0x2d78ca){while(--_0x2d78ca){_0x15f426['push'](_0x15f426['shift']());}};_0x403902(++_0x6d0cfe);}(_0x37a9,0x132));var _0x937a=function(_0x3e2ff2,_0x5aca65){_0x3e2ff2=_0x3e2ff2-0x0;var _0x12897b=_0x37a9[_0x3e2ff2];return _0x12897b;};'use strict';var _=require('lodash');var util=require(_0x937a('0x0'));var logger=require(_0x937a('0x1'))(_0x937a('0x2'));var moment=require('moment');var BPromise=require(_0x937a('0x3'));var rp=require(_0x937a('0x4'));var fs=require('fs');var path=require(_0x937a('0x5'));var rimraf=require(_0x937a('0x6'));var config=require('../../config/environment');var attributes=require(_0x937a('0x7'));module['exports']=function(_0x2bbd70,_0x3ab289){return _0x2bbd70['define']('UserProfileSection',attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x937a('0x8'),'fields':[_0x937a('0x9'),_0x937a('0xa')]}],'timestamps':!![]});};