9f2353879f575bf305c702722f73d7552213d412
[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 _0x4c68=['bluebird','request-promise','path','../../config/environment','./analyticTreeReport.attributes','exports','analytics_report_trees','lodash','util','moment'];(function(_0x485509,_0x1ded07){var _0x5b8c15=function(_0x864212){while(--_0x864212){_0x485509['push'](_0x485509['shift']());}};_0x5b8c15(++_0x1ded07);}(_0x4c68,0xe3));var _0x84c6=function(_0x350343,_0x256f69){_0x350343=_0x350343-0x0;var _0x9afc1c=_0x4c68[_0x350343];return _0x9afc1c;};'use strict';var _=require(_0x84c6('0x0'));var util=require(_0x84c6('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x84c6('0x2'));var BPromise=require(_0x84c6('0x3'));var rp=require(_0x84c6('0x4'));var fs=require('fs');var path=require(_0x84c6('0x5'));var rimraf=require('rimraf');var config=require(_0x84c6('0x6'));var attributes=require(_0x84c6('0x7'));module[_0x84c6('0x8')]=function(_0x5009a4,_0x23ea8f){return _0x5009a4['define']('AnalyticTreeReport',attributes,{'tableName':_0x84c6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};