1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xaad4=['AnalyticTreeReport','analytics_report_trees','lodash','util','moment','bluebird','path','exports','define'];(function(_0x20ef64,_0x4a8fe9){var _0x3707d8=function(_0x5b9a88){while(--_0x5b9a88){_0x20ef64['push'](_0x20ef64['shift']());}};_0x3707d8(++_0x4a8fe9);}(_0xaad4,0x110));var _0x4aad=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xaad4[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0x4aad('0x0'));var util=require(_0x4aad('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x4aad('0x2'));var BPromise=require(_0x4aad('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4aad('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./analyticTreeReport.attributes');module[_0x4aad('0x5')]=function(_0x2b7f52,_0x1f1282){return _0x2b7f52[_0x4aad('0x6')](_0x4aad('0x7'),attributes,{'tableName':_0x4aad('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};