3052102f0d99c7a256db4eb81e7be87bf8123ebf
[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 _0xc1de=['rimraf','../../config/environment','define','AnalyticCustomReport','analytics_custom_reports','lodash','util','api','bluebird','path'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0xc1de,0x16d));var _0xec1d=function(_0xc8ebf2,_0x52e902){_0xc8ebf2=_0xc8ebf2-0x0;var _0x3c5882=_0xc1de[_0xc8ebf2];return _0x3c5882;};'use strict';var _=require(_0xec1d('0x0'));var util=require(_0xec1d('0x1'));var logger=require('../../config/logger')(_0xec1d('0x2'));var moment=require('moment');var BPromise=require(_0xec1d('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xec1d('0x4'));var rimraf=require(_0xec1d('0x5'));var config=require(_0xec1d('0x6'));var attributes=require('./analyticCustomReport.attributes');module['exports']=function(_0x103de9,_0x1e601f){return _0x103de9[_0xec1d('0x7')](_0xec1d('0x8'),attributes,{'tableName':_0xec1d('0x9'),'paranoid':!![],'indexes':[],'timestamps':!![]});};