885ba53545a308b2625fa750a9053d1ec480fc5d
[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 _0xee67=['util','../../config/logger','api','moment','bluebird','request-promise','../../config/environment','./analyticTreeReport.attributes','define','AnalyticTreeReport','analytics_report_trees','lodash'];(function(_0x276468,_0x29685a){var _0x36dc3a=function(_0x291f0a){while(--_0x291f0a){_0x276468['push'](_0x276468['shift']());}};_0x36dc3a(++_0x29685a);}(_0xee67,0x1d3));var _0x7ee6=function(_0x52ff60,_0x3eccef){_0x52ff60=_0x52ff60-0x0;var _0x2f5846=_0xee67[_0x52ff60];return _0x2f5846;};'use strict';var _=require(_0x7ee6('0x0'));var util=require(_0x7ee6('0x1'));var logger=require(_0x7ee6('0x2'))(_0x7ee6('0x3'));var moment=require(_0x7ee6('0x4'));var BPromise=require(_0x7ee6('0x5'));var rp=require(_0x7ee6('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x7ee6('0x7'));var attributes=require(_0x7ee6('0x8'));module['exports']=function(_0x5a722d,_0x3f13f4){return _0x5a722d[_0x7ee6('0x9')](_0x7ee6('0xa'),attributes,{'tableName':_0x7ee6('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};