f2449b319f770c79cdbe8d4225f9174acbd6b17e
[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 _0x53bf=['sectionId','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource'];(function(_0x289891,_0x49a0fa){var _0x31cf2e=function(_0x8cebce){while(--_0x8cebce){_0x289891['push'](_0x289891['shift']());}};_0x31cf2e(++_0x49a0fa);}(_0x53bf,0x69));var _0xf53b=function(_0x55f1ed,_0x3f4c1f){_0x55f1ed=_0x55f1ed-0x0;var _0xcee696=_0x53bf[_0x55f1ed];return _0xcee696;};'use strict';var _=require(_0xf53b('0x0'));var util=require(_0xf53b('0x1'));var logger=require('../../config/logger')(_0xf53b('0x2'));var moment=require(_0xf53b('0x3'));var BPromise=require(_0xf53b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf53b('0x5'));var rimraf=require(_0xf53b('0x6'));var config=require(_0xf53b('0x7'));var attributes=require(_0xf53b('0x8'));module[_0xf53b('0x9')]=function(_0x597360,_0xbe171f){return _0x597360[_0xf53b('0xa')](_0xf53b('0xb'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':'compositeIndex','fields':['resourceId',_0xf53b('0xc')]}],'timestamps':!![]});};