ada5ee15dad81f971b253541ade331eb81ead31d
[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 _0xfebb=['analytics_report_trees','lodash','api','moment','bluebird','request-promise','path','../../config/environment','./analyticTreeReport.attributes','exports','AnalyticTreeReport'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xfebb,0xa6));var _0xbfeb=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xfebb[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xbfeb('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xbfeb('0x1'));var moment=require(_0xbfeb('0x2'));var BPromise=require(_0xbfeb('0x3'));var rp=require(_0xbfeb('0x4'));var fs=require('fs');var path=require(_0xbfeb('0x5'));var rimraf=require('rimraf');var config=require(_0xbfeb('0x6'));var attributes=require(_0xbfeb('0x7'));module[_0xbfeb('0x8')]=function(_0x5b4fef,_0x3dff6a){return _0x5b4fef['define'](_0xbfeb('0x9'),attributes,{'tableName':_0xbfeb('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};