Built motion from commit 449495f6.|2.6.27
[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 _0xeddb=['sectionId','util','api','moment','bluebird','path','../../config/environment','./userProfileResource.attributes','UserProfileResource','user_profile_has_resources','resourceId'];(function(_0xbfc560,_0x311fba){var _0x47b022=function(_0x2cd37f){while(--_0x2cd37f){_0xbfc560['push'](_0xbfc560['shift']());}};_0x47b022(++_0x311fba);}(_0xeddb,0x161));var _0xbedd=function(_0x309385,_0x3ab38f){_0x309385=_0x309385-0x0;var _0x45b0f5=_0xeddb[_0x309385];return _0x45b0f5;};'use strict';var _=require('lodash');var util=require(_0xbedd('0x0'));var logger=require('../../config/logger')(_0xbedd('0x1'));var moment=require(_0xbedd('0x2'));var BPromise=require(_0xbedd('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbedd('0x4'));var rimraf=require('rimraf');var config=require(_0xbedd('0x5'));var attributes=require(_0xbedd('0x6'));module['exports']=function(_0x1eec09,_0x186d02){return _0x1eec09['define'](_0xbedd('0x7'),attributes,{'tableName':_0xbedd('0x8'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0xbedd('0x9'),_0xbedd('0xa')]}],'timestamps':!![]});};