1841cd815a8ee70e2d13cca08e71388f09c782d7
[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 _0x0f29=['bluebird','rimraf','../../config/environment','exports','define','AnalyticCustomReport','analytics_custom_reports','util','../../config/logger','api','moment'];(function(_0x40bffc,_0x3a45d7){var _0x3007e9=function(_0x4c8fda){while(--_0x4c8fda){_0x40bffc['push'](_0x40bffc['shift']());}};_0x3007e9(++_0x3a45d7);}(_0x0f29,0x6a));var _0x90f2=function(_0x434780,_0x393caa){_0x434780=_0x434780-0x0;var _0x5ad6c4=_0x0f29[_0x434780];return _0x5ad6c4;};'use strict';var _=require('lodash');var util=require(_0x90f2('0x0'));var logger=require(_0x90f2('0x1'))(_0x90f2('0x2'));var moment=require(_0x90f2('0x3'));var BPromise=require(_0x90f2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x90f2('0x5'));var config=require(_0x90f2('0x6'));var attributes=require('./analyticCustomReport.attributes');module[_0x90f2('0x7')]=function(_0x192a4c,_0x56cc11){return _0x192a4c[_0x90f2('0x8')](_0x90f2('0x9'),attributes,{'tableName':_0x90f2('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};