258c62c7e1b964469eea3203aaad3e430bb662bd
[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 _0x8e2e=['../../config/logger','api','bluebird','request-promise','path','rimraf','exports','define','AnalyticDefaultReport','analytics_default_reports','lodash','util'];(function(_0x307008,_0x5344cf){var _0x41c656=function(_0x4e4c2a){while(--_0x4e4c2a){_0x307008['push'](_0x307008['shift']());}};_0x41c656(++_0x5344cf);}(_0x8e2e,0x172));var _0xe8e2=function(_0x105c50,_0x29ba3e){_0x105c50=_0x105c50-0x0;var _0x570327=_0x8e2e[_0x105c50];return _0x570327;};'use strict';var _=require(_0xe8e2('0x0'));var util=require(_0xe8e2('0x1'));var logger=require(_0xe8e2('0x2'))(_0xe8e2('0x3'));var moment=require('moment');var BPromise=require(_0xe8e2('0x4'));var rp=require(_0xe8e2('0x5'));var fs=require('fs');var path=require(_0xe8e2('0x6'));var rimraf=require(_0xe8e2('0x7'));var config=require('../../config/environment');var attributes=require('./analyticDefaultReport.attributes');module[_0xe8e2('0x8')]=function(_0x2b5a2d,_0x18480f){return _0x2b5a2d[_0xe8e2('0x9')](_0xe8e2('0xa'),attributes,{'tableName':_0xe8e2('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};