07bc02dbcf4bfecb492ffd71690ba54f521a6d73
[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 _0x7636=['define','UserProfileResource','compositeIndex','lodash','../../config/logger','api','moment','bluebird','request-promise','./userProfileResource.attributes','exports'];(function(_0x1e4360,_0x930b9b){var _0x31e6b4=function(_0x49dd8e){while(--_0x49dd8e){_0x1e4360['push'](_0x1e4360['shift']());}};_0x31e6b4(++_0x930b9b);}(_0x7636,0x92));var _0x6763=function(_0x430459,_0x58519c){_0x430459=_0x430459-0x0;var _0x3a2439=_0x7636[_0x430459];return _0x3a2439;};'use strict';var _=require(_0x6763('0x0'));var util=require('util');var logger=require(_0x6763('0x1'))(_0x6763('0x2'));var moment=require(_0x6763('0x3'));var BPromise=require(_0x6763('0x4'));var rp=require(_0x6763('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6763('0x6'));module[_0x6763('0x7')]=function(_0x3e5b77,_0x5e973b){return _0x3e5b77[_0x6763('0x8')](_0x6763('0x9'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x6763('0xa'),'fields':['resourceId','sectionId']}],'timestamps':!![]});};