14edc6f975035a0f08d80245b958053597e4a713
[motion2.git] / server / api / analyticDefaultReport / analyticDefaultReport.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 _0x0985=['../../config/environment','./analyticDefaultReport.attributes','exports','define','AnalyticDefaultReport','analytics_default_reports','util','../../config/logger','api','moment','bluebird','path'];(function(_0x160c73,_0x2ee678){var _0xd9302=function(_0x169454){while(--_0x169454){_0x160c73['push'](_0x160c73['shift']());}};_0xd9302(++_0x2ee678);}(_0x0985,0x192));var _0x5098=function(_0x3d09e2,_0x58e784){_0x3d09e2=_0x3d09e2-0x0;var _0x5d03cd=_0x0985[_0x3d09e2];return _0x5d03cd;};'use strict';var _=require('lodash');var util=require(_0x5098('0x0'));var logger=require(_0x5098('0x1'))(_0x5098('0x2'));var moment=require(_0x5098('0x3'));var BPromise=require(_0x5098('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5098('0x5'));var rimraf=require('rimraf');var config=require(_0x5098('0x6'));var attributes=require(_0x5098('0x7'));module[_0x5098('0x8')]=function(_0x201674,_0x2b4dab){return _0x201674[_0x5098('0x9')](_0x5098('0xa'),attributes,{'tableName':_0x5098('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};