20ff61fb35dc55bb620e92773c4fbc7d60a8f165
[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 _0x4337=['define','AnalyticTreeReport','analytics_report_trees','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','./analyticTreeReport.attributes','exports'];(function(_0x31a85e,_0x4ebd76){var _0x4f99b3=function(_0x59cdcf){while(--_0x59cdcf){_0x31a85e['push'](_0x31a85e['shift']());}};_0x4f99b3(++_0x4ebd76);}(_0x4337,0x6b));var _0x7433=function(_0x1c288c,_0x3277d4){_0x1c288c=_0x1c288c-0x0;var _0x326f13=_0x4337[_0x1c288c];return _0x326f13;};'use strict';var _=require(_0x7433('0x0'));var util=require(_0x7433('0x1'));var logger=require(_0x7433('0x2'))(_0x7433('0x3'));var moment=require(_0x7433('0x4'));var BPromise=require(_0x7433('0x5'));var rp=require(_0x7433('0x6'));var fs=require('fs');var path=require(_0x7433('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x7433('0x8'));module[_0x7433('0x9')]=function(_0x19c676,_0x2f85af){return _0x19c676[_0x7433('0xa')](_0x7433('0xb'),attributes,{'tableName':_0x7433('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};