Built motion from commit 497d3d92.|2.5.43
[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 _0x391a=['UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId','../../config/logger','api','moment','request-promise','path','rimraf','./userProfileResource.attributes','define'];(function(_0x40ac5e,_0x2de228){var _0x2839d6=function(_0x123d47){while(--_0x123d47){_0x40ac5e['push'](_0x40ac5e['shift']());}};_0x2839d6(++_0x2de228);}(_0x391a,0x1f3));var _0xa391=function(_0x16af06,_0x5ad078){_0x16af06=_0x16af06-0x0;var _0x3e6f5b=_0x391a[_0x16af06];return _0x3e6f5b;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xa391('0x0'))(_0xa391('0x1'));var moment=require(_0xa391('0x2'));var BPromise=require('bluebird');var rp=require(_0xa391('0x3'));var fs=require('fs');var path=require(_0xa391('0x4'));var rimraf=require(_0xa391('0x5'));var config=require('../../config/environment');var attributes=require(_0xa391('0x6'));module['exports']=function(_0x2c61d8,_0x48c1b0){return _0x2c61d8[_0xa391('0x7')](_0xa391('0x8'),attributes,{'tableName':_0xa391('0x9'),'paranoid':![],'indexes':[{'name':_0xa391('0xa'),'fields':[_0xa391('0xb'),_0xa391('0xc')]}],'timestamps':!![]});};