188bcf78781eb64e8fdf13d37f9722fcfe8a1625
[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 _0xd9c3=['define','AnalyticCustomReport','analytics_custom_reports','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','./analyticCustomReport.attributes','exports'];(function(_0x4a1838,_0xb165c9){var _0x24bb28=function(_0x224176){while(--_0x224176){_0x4a1838['push'](_0x4a1838['shift']());}};_0x24bb28(++_0xb165c9);}(_0xd9c3,0xc3));var _0x3d9c=function(_0x45e98e,_0x169b60){_0x45e98e=_0x45e98e-0x0;var _0x374dba=_0xd9c3[_0x45e98e];return _0x374dba;};'use strict';var _=require(_0x3d9c('0x0'));var util=require('util');var logger=require(_0x3d9c('0x1'))(_0x3d9c('0x2'));var moment=require(_0x3d9c('0x3'));var BPromise=require(_0x3d9c('0x4'));var rp=require(_0x3d9c('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3d9c('0x6'));var config=require('../../config/environment');var attributes=require(_0x3d9c('0x7'));module[_0x3d9c('0x8')]=function(_0x561efc,_0x255f69){return _0x561efc[_0x3d9c('0x9')](_0x3d9c('0xa'),attributes,{'tableName':_0x3d9c('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};