023462dfb4184bedd88061d5c8b252ea8e2183c1
[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 _0x9863=['rimraf','./analyticTreeReport.attributes','exports','define','analytics_report_trees','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x9863,0x19c));var _0x3986=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x9863[_0x4a9fb1];return _0x348672;};'use strict';var _=require(_0x3986('0x0'));var util=require(_0x3986('0x1'));var logger=require(_0x3986('0x2'))(_0x3986('0x3'));var moment=require(_0x3986('0x4'));var BPromise=require(_0x3986('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x3986('0x6'));var config=require('../../config/environment');var attributes=require(_0x3986('0x7'));module[_0x3986('0x8')]=function(_0x4340b6,_0x3e8ea4){return _0x4340b6[_0x3986('0x9')]('AnalyticTreeReport',attributes,{'tableName':_0x3986('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};