Built motion from commit (unavailable).|2.5.21
[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 _0x22cf=['UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','./userProfileResource.attributes'];(function(_0x1ca7c4,_0x1436c8){var _0x5399c7=function(_0x3fb321){while(--_0x3fb321){_0x1ca7c4['push'](_0x1ca7c4['shift']());}};_0x5399c7(++_0x1436c8);}(_0x22cf,0x13c));var _0xf22c=function(_0x1cb168,_0x3ad839){_0x1cb168=_0x1cb168-0x0;var _0x371956=_0x22cf[_0x1cb168];return _0x371956;};'use strict';var _=require(_0xf22c('0x0'));var util=require(_0xf22c('0x1'));var logger=require(_0xf22c('0x2'))(_0xf22c('0x3'));var moment=require('moment');var BPromise=require(_0xf22c('0x4'));var rp=require(_0xf22c('0x5'));var fs=require('fs');var path=require(_0xf22c('0x6'));var rimraf=require(_0xf22c('0x7'));var config=require('../../config/environment');var attributes=require(_0xf22c('0x8'));module['exports']=function(_0x11b309,_0x44ca30){return _0x11b309['define'](_0xf22c('0x9'),attributes,{'tableName':_0xf22c('0xa'),'paranoid':![],'indexes':[{'name':_0xf22c('0xb'),'fields':['resourceId',_0xf22c('0xc')]}],'timestamps':!![]});};