Built motion from commit 97153652.|2.6.26
[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 _0x308b=['exports','define','UserProfileResource','compositeIndex','sectionId','lodash','util','../../config/logger','api','moment','path','rimraf','../../config/environment','./userProfileResource.attributes'];(function(_0x15d26a,_0x230cc1){var _0x4a031f=function(_0x34d7a2){while(--_0x34d7a2){_0x15d26a['push'](_0x15d26a['shift']());}};_0x4a031f(++_0x230cc1);}(_0x308b,0x12b));var _0xb308=function(_0x22cc74,_0x56ee7d){_0x22cc74=_0x22cc74-0x0;var _0x4b6500=_0x308b[_0x22cc74];return _0x4b6500;};'use strict';var _=require(_0xb308('0x0'));var util=require(_0xb308('0x1'));var logger=require(_0xb308('0x2'))(_0xb308('0x3'));var moment=require(_0xb308('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xb308('0x5'));var rimraf=require(_0xb308('0x6'));var config=require(_0xb308('0x7'));var attributes=require(_0xb308('0x8'));module[_0xb308('0x9')]=function(_0x547dc8,_0x2fc19e){return _0x547dc8[_0xb308('0xa')](_0xb308('0xb'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0xb308('0xc'),'fields':['resourceId',_0xb308('0xd')]}],'timestamps':!![]});};