b46e76b9ce921cf92babda8c02160570edd1a233
[motion2.git] / server / api / analyticCustomReport / analyticCustomReport.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 _0x69dc=['analytics_custom_reports','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','exports','AnalyticCustomReport'];(function(_0x505d44,_0x5d1152){var _0x461166=function(_0xb0848d){while(--_0xb0848d){_0x505d44['push'](_0x505d44['shift']());}};_0x461166(++_0x5d1152);}(_0x69dc,0x1bd));var _0xc69d=function(_0x2cab80,_0x4f59d8){_0x2cab80=_0x2cab80-0x0;var _0x411205=_0x69dc[_0x2cab80];return _0x411205;};'use strict';var _=require(_0xc69d('0x0'));var util=require(_0xc69d('0x1'));var logger=require(_0xc69d('0x2'))(_0xc69d('0x3'));var moment=require('moment');var BPromise=require(_0xc69d('0x4'));var rp=require(_0xc69d('0x5'));var fs=require('fs');var path=require(_0xc69d('0x6'));var rimraf=require(_0xc69d('0x7'));var config=require(_0xc69d('0x8'));var attributes=require('./analyticCustomReport.attributes');module[_0xc69d('0x9')]=function(_0x167137,_0x4f1544){return _0x167137['define'](_0xc69d('0xa'),attributes,{'tableName':_0xc69d('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};