Built motion from commit bab6f49e.|2.6.17
[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 _0x1299=['rimraf','exports','define','analytics_report_trees','lodash','util','../../config/logger','api','bluebird','path'];(function(_0x441563,_0x1d4a28){var _0x2369ec=function(_0x1f97ba){while(--_0x1f97ba){_0x441563['push'](_0x441563['shift']());}};_0x2369ec(++_0x1d4a28);}(_0x1299,0x130));var _0x9129=function(_0x1c2f3a,_0x531b52){_0x1c2f3a=_0x1c2f3a-0x0;var _0xfa3d06=_0x1299[_0x1c2f3a];return _0xfa3d06;};'use strict';var _=require(_0x9129('0x0'));var util=require(_0x9129('0x1'));var logger=require(_0x9129('0x2'))(_0x9129('0x3'));var moment=require('moment');var BPromise=require(_0x9129('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9129('0x5'));var rimraf=require(_0x9129('0x6'));var config=require('../../config/environment');var attributes=require('./analyticTreeReport.attributes');module[_0x9129('0x7')]=function(_0x16bbcc,_0x1368bd){return _0x16bbcc[_0x9129('0x8')]('AnalyticTreeReport',attributes,{'tableName':_0x9129('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};