237fe8136f84248796073bd99005a86bc8ca6432
[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 _0xfc33=['compositeIndex','sectionId','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','./userProfileSection.attributes','exports','user_profile_has_sections'];(function(_0x2a20af,_0x568d2){var _0x34624f=function(_0x1d5d8a){while(--_0x1d5d8a){_0x2a20af['push'](_0x2a20af['shift']());}};_0x34624f(++_0x568d2);}(_0xfc33,0x16e));var _0x3fc3=function(_0x29d94e,_0xf386d6){_0x29d94e=_0x29d94e-0x0;var _0x106237=_0xfc33[_0x29d94e];return _0x106237;};'use strict';var _=require(_0x3fc3('0x0'));var util=require(_0x3fc3('0x1'));var logger=require(_0x3fc3('0x2'))(_0x3fc3('0x3'));var moment=require(_0x3fc3('0x4'));var BPromise=require('bluebird');var rp=require(_0x3fc3('0x5'));var fs=require('fs');var path=require(_0x3fc3('0x6'));var rimraf=require(_0x3fc3('0x7'));var config=require('../../config/environment');var attributes=require(_0x3fc3('0x8'));module[_0x3fc3('0x9')]=function(_0x1e7af4,_0x1dfb48){return _0x1e7af4['define']('UserProfileSection',attributes,{'tableName':_0x3fc3('0xa'),'paranoid':![],'indexes':[{'name':_0x3fc3('0xb'),'fields':[_0x3fc3('0xc'),'userProfileId']}],'timestamps':!![]});};