a073f2b93cb88b47ee96eab5805c7bb8c3ee7b1a
[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 _0x4e0e=['lodash','../../config/logger','api','moment','bluebird','path','./userProfileResource.attributes','exports','define','user_profile_has_resources','compositeIndex','resourceId','sectionId'];(function(_0x2cb0ac,_0x35e1e5){var _0x2e5666=function(_0x27985a){while(--_0x27985a){_0x2cb0ac['push'](_0x2cb0ac['shift']());}};_0x2e5666(++_0x35e1e5);}(_0x4e0e,0x1ba));var _0xe4e0=function(_0x2e8ce0,_0x46a958){_0x2e8ce0=_0x2e8ce0-0x0;var _0x5916fa=_0x4e0e[_0x2e8ce0];return _0x5916fa;};'use strict';var _=require(_0xe4e0('0x0'));var util=require('util');var logger=require(_0xe4e0('0x1'))(_0xe4e0('0x2'));var moment=require(_0xe4e0('0x3'));var BPromise=require(_0xe4e0('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe4e0('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xe4e0('0x6'));module[_0xe4e0('0x7')]=function(_0x2fdacc,_0x222c81){return _0x2fdacc[_0xe4e0('0x8')]('UserProfileResource',attributes,{'tableName':_0xe4e0('0x9'),'paranoid':![],'indexes':[{'name':_0xe4e0('0xa'),'fields':[_0xe4e0('0xb'),_0xe4e0('0xc')]}],'timestamps':!![]});};