c603be6adf6204ee801258f9bf86ee35d616cee7
[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 _0x2274=['./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','lodash','util','bluebird','request-promise','path','rimraf'];(function(_0x28007b,_0x145c95){var _0x1a71af=function(_0x132310){while(--_0x132310){_0x28007b['push'](_0x28007b['shift']());}};_0x1a71af(++_0x145c95);}(_0x2274,0xcb));var _0x4227=function(_0x318ef,_0x4cad16){_0x318ef=_0x318ef-0x0;var _0x4429f9=_0x2274[_0x318ef];return _0x4429f9;};'use strict';var _=require(_0x4227('0x0'));var util=require(_0x4227('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x4227('0x2'));var rp=require(_0x4227('0x3'));var fs=require('fs');var path=require(_0x4227('0x4'));var rimraf=require(_0x4227('0x5'));var config=require('../../config/environment');var attributes=require(_0x4227('0x6'));module[_0x4227('0x7')]=function(_0x2d5f19,_0x40d4a8){return _0x2d5f19[_0x4227('0x8')](_0x4227('0x9'),attributes,{'tableName':_0x4227('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};