06131ed7d92347b0498d50c84e4acd90743a06a4
[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 _0x1df8=['../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./analyticCustomReport.attributes','exports','AnalyticCustomReport','analytics_custom_reports','util'];(function(_0x3218c5,_0x1d0415){var _0x2243c9=function(_0x46d8fe){while(--_0x46d8fe){_0x3218c5['push'](_0x3218c5['shift']());}};_0x2243c9(++_0x1d0415);}(_0x1df8,0x173));var _0x81df=function(_0x2621aa,_0x365880){_0x2621aa=_0x2621aa-0x0;var _0x2a2f44=_0x1df8[_0x2621aa];return _0x2a2f44;};'use strict';var _=require('lodash');var util=require(_0x81df('0x0'));var logger=require(_0x81df('0x1'))(_0x81df('0x2'));var moment=require('moment');var BPromise=require(_0x81df('0x3'));var rp=require(_0x81df('0x4'));var fs=require('fs');var path=require(_0x81df('0x5'));var rimraf=require(_0x81df('0x6'));var config=require(_0x81df('0x7'));var attributes=require(_0x81df('0x8'));module[_0x81df('0x9')]=function(_0x179b76,_0x1ceea7){return _0x179b76['define'](_0x81df('0xa'),attributes,{'tableName':_0x81df('0xb'),'paranoid':!![],'indexes':[],'timestamps':!![]});};