d6337ec7cb524b7fbe072ff9c8fa37d4c396c7ca
[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 _0x2c87=['api','moment','request-promise','path','rimraf','../../config/environment','./analyticTreeReport.attributes','exports','define','AnalyticTreeReport','analytics_report_trees','lodash','util','../../config/logger'];(function(_0x59c301,_0x359c50){var _0x3866b9=function(_0x2d380e){while(--_0x2d380e){_0x59c301['push'](_0x59c301['shift']());}};_0x3866b9(++_0x359c50);}(_0x2c87,0x107));var _0x72c8=function(_0xf34a42,_0x5d8a51){_0xf34a42=_0xf34a42-0x0;var _0x159d63=_0x2c87[_0xf34a42];return _0x159d63;};'use strict';var _=require(_0x72c8('0x0'));var util=require(_0x72c8('0x1'));var logger=require(_0x72c8('0x2'))(_0x72c8('0x3'));var moment=require(_0x72c8('0x4'));var BPromise=require('bluebird');var rp=require(_0x72c8('0x5'));var fs=require('fs');var path=require(_0x72c8('0x6'));var rimraf=require(_0x72c8('0x7'));var config=require(_0x72c8('0x8'));var attributes=require(_0x72c8('0x9'));module[_0x72c8('0xa')]=function(_0x45e2a9,_0x384482){return _0x45e2a9[_0x72c8('0xb')](_0x72c8('0xc'),attributes,{'tableName':_0x72c8('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};