Built motion from commit 4ca75f1b.|2.6.28
[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 _0x130f=['define','UserProfileResource','compositeIndex','sectionId','lodash','../../config/logger','moment','bluebird','request-promise','rimraf','./userProfileResource.attributes'];(function(_0x4c6d6f,_0x291557){var _0x2d4478=function(_0x106946){while(--_0x106946){_0x4c6d6f['push'](_0x4c6d6f['shift']());}};_0x2d4478(++_0x291557);}(_0x130f,0xb4));var _0xf130=function(_0x5cc19b,_0x2dbec3){_0x5cc19b=_0x5cc19b-0x0;var _0x1c4bb5=_0x130f[_0x5cc19b];return _0x1c4bb5;};'use strict';var _=require(_0xf130('0x0'));var util=require('util');var logger=require(_0xf130('0x1'))('api');var moment=require(_0xf130('0x2'));var BPromise=require(_0xf130('0x3'));var rp=require(_0xf130('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf130('0x5'));var config=require('../../config/environment');var attributes=require(_0xf130('0x6'));module['exports']=function(_0x1647ca,_0x567aa5){return _0x1647ca[_0xf130('0x7')](_0xf130('0x8'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0xf130('0x9'),'fields':['resourceId',_0xf130('0xa')]}],'timestamps':!![]});};