Built motion from commit 3e059bc2.|2.5.32
[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 _0xb56e=['api','request-promise','path','../../config/environment','./userProfileResource.attributes','exports','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','lodash','util'];(function(_0x3623bf,_0x35f2f5){var _0x58f6b6=function(_0x5cb7e1){while(--_0x5cb7e1){_0x3623bf['push'](_0x3623bf['shift']());}};_0x58f6b6(++_0x35f2f5);}(_0xb56e,0x17e));var _0xeb56=function(_0x389c37,_0x39a393){_0x389c37=_0x389c37-0x0;var _0x924e1e=_0xb56e[_0x389c37];return _0x924e1e;};'use strict';var _=require(_0xeb56('0x0'));var util=require(_0xeb56('0x1'));var logger=require('../../config/logger')(_0xeb56('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xeb56('0x3'));var fs=require('fs');var path=require(_0xeb56('0x4'));var rimraf=require('rimraf');var config=require(_0xeb56('0x5'));var attributes=require(_0xeb56('0x6'));module[_0xeb56('0x7')]=function(_0x1b6e0f,_0x3f5015){return _0x1b6e0f['define'](_0xeb56('0x8'),attributes,{'tableName':_0xeb56('0x9'),'paranoid':![],'indexes':[{'name':_0xeb56('0xa'),'fields':['resourceId',_0xeb56('0xb')]}],'timestamps':!![]});};