460921bfb5e3be8949d3e5ef5ad83870d3dc8e3b
[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 _0x176c=['../../config/environment','exports','AnalyticTreeReport','../../config/logger','api','moment','bluebird','rimraf'];(function(_0x5627cc,_0x84b362){var _0x2ee027=function(_0x12902b){while(--_0x12902b){_0x5627cc['push'](_0x5627cc['shift']());}};_0x2ee027(++_0x84b362);}(_0x176c,0x193));var _0xc176=function(_0x19f23e,_0x59706e){_0x19f23e=_0x19f23e-0x0;var _0x51b548=_0x176c[_0x19f23e];return _0x51b548;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xc176('0x0'))(_0xc176('0x1'));var moment=require(_0xc176('0x2'));var BPromise=require(_0xc176('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xc176('0x4'));var config=require(_0xc176('0x5'));var attributes=require('./analyticTreeReport.attributes');module[_0xc176('0x6')]=function(_0x33da63,_0x3ee270){return _0x33da63['define'](_0xc176('0x7'),attributes,{'tableName':'analytics_report_trees','paranoid':![],'indexes':[],'timestamps':!![]});};