Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0x3f32=['util','../../config/logger','moment','request-promise','rimraf','../../config/environment','./userProfileResource.attributes','exports','define','user_profile_has_resources','compositeIndex','resourceId','sectionId'];(function(_0x34933a,_0x327378){var _0x36abb4=function(_0x2d6814){while(--_0x2d6814){_0x34933a['push'](_0x34933a['shift']());}};_0x36abb4(++_0x327378);}(_0x3f32,0x179));var _0x23f3=function(_0x14909f,_0xe25f2e){_0x14909f=_0x14909f-0x0;var _0x19698c=_0x3f32[_0x14909f];return _0x19698c;};'use strict';var _=require('lodash');var util=require(_0x23f3('0x0'));var logger=require(_0x23f3('0x1'))('api');var moment=require(_0x23f3('0x2'));var BPromise=require('bluebird');var rp=require(_0x23f3('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x23f3('0x4'));var config=require(_0x23f3('0x5'));var attributes=require(_0x23f3('0x6'));module[_0x23f3('0x7')]=function(_0x3163d4,_0x1cf3a8){return _0x3163d4[_0x23f3('0x8')]('UserProfileResource',attributes,{'tableName':_0x23f3('0x9'),'paranoid':![],'indexes':[{'name':_0x23f3('0xa'),'fields':[_0x23f3('0xb'),_0x23f3('0xc')]}],'timestamps':!![]});};