Built motion from commit 3d6333b4.|2.6.31
[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 _0x1975=['../../config/environment','exports','define','AnalyticTreeReport','analytics_report_trees','util','../../config/logger','api','moment','request-promise','path','rimraf'];(function(_0x2dc2f6,_0x486e78){var _0x17d023=function(_0x231e30){while(--_0x231e30){_0x2dc2f6['push'](_0x2dc2f6['shift']());}};_0x17d023(++_0x486e78);}(_0x1975,0x13d));var _0x5197=function(_0x2f9c02,_0x15719e){_0x2f9c02=_0x2f9c02-0x0;var _0x5d33f3=_0x1975[_0x2f9c02];return _0x5d33f3;};'use strict';var _=require('lodash');var util=require(_0x5197('0x0'));var logger=require(_0x5197('0x1'))(_0x5197('0x2'));var moment=require(_0x5197('0x3'));var BPromise=require('bluebird');var rp=require(_0x5197('0x4'));var fs=require('fs');var path=require(_0x5197('0x5'));var rimraf=require(_0x5197('0x6'));var config=require(_0x5197('0x7'));var attributes=require('./analyticTreeReport.attributes');module[_0x5197('0x8')]=function(_0x473f52,_0x59ef86){return _0x473f52[_0x5197('0x9')](_0x5197('0xa'),attributes,{'tableName':_0x5197('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};