98dba65ea1a11d32e2b3f791f2733b24b19ab79f
[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 _0x9a5e=['path','rimraf','../../config/environment','exports','define','AnalyticCustomReport','lodash','util','../../config/logger','moment','bluebird','request-promise'];(function(_0x4ab99,_0x219ed2){var _0x29e39c=function(_0x2dd986){while(--_0x2dd986){_0x4ab99['push'](_0x4ab99['shift']());}};_0x29e39c(++_0x219ed2);}(_0x9a5e,0x1b6));var _0xe9a5=function(_0x3a1113,_0x2d0ade){_0x3a1113=_0x3a1113-0x0;var _0xce3356=_0x9a5e[_0x3a1113];return _0xce3356;};'use strict';var _=require(_0xe9a5('0x0'));var util=require(_0xe9a5('0x1'));var logger=require(_0xe9a5('0x2'))('api');var moment=require(_0xe9a5('0x3'));var BPromise=require(_0xe9a5('0x4'));var rp=require(_0xe9a5('0x5'));var fs=require('fs');var path=require(_0xe9a5('0x6'));var rimraf=require(_0xe9a5('0x7'));var config=require(_0xe9a5('0x8'));var attributes=require('./analyticCustomReport.attributes');module[_0xe9a5('0x9')]=function(_0x46b26e,_0x39cad7){return _0x46b26e[_0xe9a5('0xa')](_0xe9a5('0xb'),attributes,{'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]});};