b04849c2b219c79e18fc852cc934709c42ca660b
[motion2.git] / server / api / analyticTreeReport / analyticTreeReport.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 _0x713f=['rimraf','exports','define','analytics_report_trees','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x18a436,_0x1dbe06){var _0x5c2cf8=function(_0x4712d1){while(--_0x4712d1){_0x18a436['push'](_0x18a436['shift']());}};_0x5c2cf8(++_0x1dbe06);}(_0x713f,0x144));var _0xf713=function(_0x5c0f9b,_0x58ba6d){_0x5c0f9b=_0x5c0f9b-0x0;var _0x36a624=_0x713f[_0x5c0f9b];return _0x36a624;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xf713('0x0'))(_0xf713('0x1'));var moment=require(_0xf713('0x2'));var BPromise=require(_0xf713('0x3'));var rp=require(_0xf713('0x4'));var fs=require('fs');var path=require(_0xf713('0x5'));var rimraf=require(_0xf713('0x6'));var config=require('../../config/environment');var attributes=require('./analyticTreeReport.attributes');module[_0xf713('0x7')]=function(_0x24806,_0x246861){return _0x24806[_0xf713('0x8')]('AnalyticTreeReport',attributes,{'tableName':_0xf713('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};