Built motion from commit 9d1906d1.|2.5.40
[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 _0x8aa4=['exports','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId','lodash','../../config/logger','api','bluebird','request-promise','path','../../config/environment','./userProfileResource.attributes'];(function(_0x3b1e3f,_0xf8826b){var _0x3b1cd3=function(_0x26ad44){while(--_0x26ad44){_0x3b1e3f['push'](_0x3b1e3f['shift']());}};_0x3b1cd3(++_0xf8826b);}(_0x8aa4,0x12c));var _0x48aa=function(_0x159902,_0x2f808c){_0x159902=_0x159902-0x0;var _0x128878=_0x8aa4[_0x159902];return _0x128878;};'use strict';var _=require(_0x48aa('0x0'));var util=require('util');var logger=require(_0x48aa('0x1'))(_0x48aa('0x2'));var moment=require('moment');var BPromise=require(_0x48aa('0x3'));var rp=require(_0x48aa('0x4'));var fs=require('fs');var path=require(_0x48aa('0x5'));var rimraf=require('rimraf');var config=require(_0x48aa('0x6'));var attributes=require(_0x48aa('0x7'));module[_0x48aa('0x8')]=function(_0x5ed4f1,_0x4764e9){return _0x5ed4f1['define'](_0x48aa('0x9'),attributes,{'tableName':_0x48aa('0xa'),'paranoid':![],'indexes':[{'name':_0x48aa('0xb'),'fields':[_0x48aa('0xc'),_0x48aa('0xd')]}],'timestamps':!![]});};