7c9e847a16f01969fb97f49d951037e3a9e6fa45
[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 _0x0bba=['exports','define','analytics_custom_reports','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf'];(function(_0x433510,_0x5ba904){var _0x1ef3f5=function(_0x5bccee){while(--_0x5bccee){_0x433510['push'](_0x433510['shift']());}};_0x1ef3f5(++_0x5ba904);}(_0x0bba,0x18f));var _0xa0bb=function(_0x35c27f,_0xd01378){_0x35c27f=_0x35c27f-0x0;var _0x2b7a3c=_0x0bba[_0x35c27f];return _0x2b7a3c;};'use strict';var _=require(_0xa0bb('0x0'));var util=require(_0xa0bb('0x1'));var logger=require(_0xa0bb('0x2'))(_0xa0bb('0x3'));var moment=require('moment');var BPromise=require(_0xa0bb('0x4'));var rp=require(_0xa0bb('0x5'));var fs=require('fs');var path=require(_0xa0bb('0x6'));var rimraf=require(_0xa0bb('0x7'));var config=require('../../config/environment');var attributes=require('./analyticCustomReport.attributes');module[_0xa0bb('0x8')]=function(_0x122729,_0x18de5e){return _0x122729[_0xa0bb('0x9')]('AnalyticCustomReport',attributes,{'tableName':_0xa0bb('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};