Built motion from commit (unavailable).|2.5.29
[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 _0xc96a=['exports','define','compositeIndex','lodash','util','../../config/logger','bluebird','path','rimraf','./userProfileResource.attributes'];(function(_0x1f01a9,_0x5781b7){var _0x2ee817=function(_0x4ce980){while(--_0x4ce980){_0x1f01a9['push'](_0x1f01a9['shift']());}};_0x2ee817(++_0x5781b7);}(_0xc96a,0x7b));var _0xac96=function(_0x5cbf0e,_0x4cd140){_0x5cbf0e=_0x5cbf0e-0x0;var _0x1c76f8=_0xc96a[_0x5cbf0e];return _0x1c76f8;};'use strict';var _=require(_0xac96('0x0'));var util=require(_0xac96('0x1'));var logger=require(_0xac96('0x2'))('api');var moment=require('moment');var BPromise=require(_0xac96('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xac96('0x4'));var rimraf=require(_0xac96('0x5'));var config=require('../../config/environment');var attributes=require(_0xac96('0x6'));module[_0xac96('0x7')]=function(_0x12cc29,_0x31c7fc){return _0x12cc29[_0xac96('0x8')]('UserProfileResource',attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0xac96('0x9'),'fields':['resourceId','sectionId']}],'timestamps':!![]});};