bd5da2d7e0d4e5002aa31744de94b45cefb8ce52
[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 _0xa399=['sectionId','util','api','moment','request-promise','../../config/environment','./userProfileResource.attributes','define','UserProfileResource'];(function(_0x1ea46c,_0x849015){var _0xb8f343=function(_0x25a09f){while(--_0x25a09f){_0x1ea46c['push'](_0x1ea46c['shift']());}};_0xb8f343(++_0x849015);}(_0xa399,0x1cc));var _0x9a39=function(_0x55abd9,_0x1148af){_0x55abd9=_0x55abd9-0x0;var _0x3e5669=_0xa399[_0x55abd9];return _0x3e5669;};'use strict';var _=require('lodash');var util=require(_0x9a39('0x0'));var logger=require('../../config/logger')(_0x9a39('0x1'));var moment=require(_0x9a39('0x2'));var BPromise=require('bluebird');var rp=require(_0x9a39('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x9a39('0x4'));var attributes=require(_0x9a39('0x5'));module['exports']=function(_0x1417c7,_0x467283){return _0x1417c7[_0x9a39('0x6')](_0x9a39('0x7'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':'compositeIndex','fields':['resourceId',_0x9a39('0x8')]}],'timestamps':!![]});};