a336d3ae5f9ce27026424fccb53d231b05f0aab2
[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 _0xf6bb=['define','user_profile_has_resources','compositeIndex','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./userProfileResource.attributes','exports'];(function(_0x13b392,_0x3481f2){var _0x39db24=function(_0xab91e5){while(--_0xab91e5){_0x13b392['push'](_0x13b392['shift']());}};_0x39db24(++_0x3481f2);}(_0xf6bb,0x1b5));var _0xbf6b=function(_0x1477ef,_0x54a5d6){_0x1477ef=_0x1477ef-0x0;var _0x164acd=_0xf6bb[_0x1477ef];return _0x164acd;};'use strict';var _=require(_0xbf6b('0x0'));var util=require(_0xbf6b('0x1'));var logger=require(_0xbf6b('0x2'))(_0xbf6b('0x3'));var moment=require(_0xbf6b('0x4'));var BPromise=require(_0xbf6b('0x5'));var rp=require(_0xbf6b('0x6'));var fs=require('fs');var path=require(_0xbf6b('0x7'));var rimraf=require('rimraf');var config=require(_0xbf6b('0x8'));var attributes=require(_0xbf6b('0x9'));module[_0xbf6b('0xa')]=function(_0x585bba,_0x4b8f64){return _0x585bba[_0xbf6b('0xb')]('UserProfileResource',attributes,{'tableName':_0xbf6b('0xc'),'paranoid':![],'indexes':[{'name':_0xbf6b('0xd'),'fields':['resourceId','sectionId']}],'timestamps':!![]});};