b5f52b5b14104ced49552829fbfe2dbbdeb5232e
[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 _0x0650=['bluebird','path','rimraf','../../config/environment','exports','AnalyticTreeReport','analytics_report_trees','lodash','../../config/logger','api'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0x0650,0xed));var _0x0065=function(_0x3587ec,_0x1aa6f6){_0x3587ec=_0x3587ec-0x0;var _0x5a8f5f=_0x0650[_0x3587ec];return _0x5a8f5f;};'use strict';var _=require(_0x0065('0x0'));var util=require('util');var logger=require(_0x0065('0x1'))(_0x0065('0x2'));var moment=require('moment');var BPromise=require(_0x0065('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0065('0x4'));var rimraf=require(_0x0065('0x5'));var config=require(_0x0065('0x6'));var attributes=require('./analyticTreeReport.attributes');module[_0x0065('0x7')]=function(_0x507ed3,_0x5cf16e){return _0x507ed3['define'](_0x0065('0x8'),attributes,{'tableName':_0x0065('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};