63b0e6ca68964d8574af623a87fb51d2deffbc64
[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 _0xb4b1=['moment','bluebird','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','lodash','util','../../config/logger'];(function(_0x3d74f3,_0x137d7c){var _0x21eeb=function(_0x576958){while(--_0x576958){_0x3d74f3['push'](_0x3d74f3['shift']());}};_0x21eeb(++_0x137d7c);}(_0xb4b1,0x1d3));var _0x1b4b=function(_0x53b192,_0x2d207a){_0x53b192=_0x53b192-0x0;var _0xc0674d=_0xb4b1[_0x53b192];return _0xc0674d;};'use strict';var _=require(_0x1b4b('0x0'));var util=require(_0x1b4b('0x1'));var logger=require(_0x1b4b('0x2'))('api');var moment=require(_0x1b4b('0x3'));var BPromise=require(_0x1b4b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x1b4b('0x5'));module[_0x1b4b('0x6')]=function(_0x33f835,_0x3b7f53){return _0x33f835[_0x1b4b('0x7')](_0x1b4b('0x8'),attributes,{'tableName':_0x1b4b('0x9'),'paranoid':!![],'indexes':[],'timestamps':!![]});};