260fe15aec64bfbe4b3cd515355eede6aefd83fd
[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 _0x5d4e=['../../config/environment','./analyticCustomReport.attributes','exports','AnalyticCustomReport','analytics_custom_reports','lodash','util','api','moment','request-promise','rimraf'];(function(_0x232dab,_0x597683){var _0xd0193d=function(_0x233a02){while(--_0x233a02){_0x232dab['push'](_0x232dab['shift']());}};_0xd0193d(++_0x597683);}(_0x5d4e,0x1b2));var _0xe5d4=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x5d4e[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0xe5d4('0x0'));var util=require(_0xe5d4('0x1'));var logger=require('../../config/logger')(_0xe5d4('0x2'));var moment=require(_0xe5d4('0x3'));var BPromise=require('bluebird');var rp=require(_0xe5d4('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe5d4('0x5'));var config=require(_0xe5d4('0x6'));var attributes=require(_0xe5d4('0x7'));module[_0xe5d4('0x8')]=function(_0x19f5e6,_0x1e2bf9){return _0x19f5e6['define'](_0xe5d4('0x9'),attributes,{'tableName':_0xe5d4('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};