c85360a1434e91f9215b02e79e9389180a8d7932
[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 _0x6ace=['compositeIndex','userProfileId','lodash','moment','request-promise','path','rimraf','../../config/environment','exports','UserProfileSection','user_profile_has_sections'];(function(_0x160c73,_0x2ee678){var _0xd9302=function(_0x169454){while(--_0x169454){_0x160c73['push'](_0x160c73['shift']());}};_0xd9302(++_0x2ee678);}(_0x6ace,0x18e));var _0xe6ac=function(_0x41273c,_0x4c0c04){_0x41273c=_0x41273c-0x0;var _0x453ce4=_0x6ace[_0x41273c];return _0x453ce4;};'use strict';var _=require(_0xe6ac('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xe6ac('0x1'));var BPromise=require('bluebird');var rp=require(_0xe6ac('0x2'));var fs=require('fs');var path=require(_0xe6ac('0x3'));var rimraf=require(_0xe6ac('0x4'));var config=require(_0xe6ac('0x5'));var attributes=require('./userProfileSection.attributes');module[_0xe6ac('0x6')]=function(_0x2f5dc6,_0x5ab941){return _0x2f5dc6['define'](_0xe6ac('0x7'),attributes,{'tableName':_0xe6ac('0x8'),'paranoid':![],'indexes':[{'name':_0xe6ac('0x9'),'fields':['sectionId',_0xe6ac('0xa')]}],'timestamps':!![]});};