4cd21913c4752b436703d3fbbdfb548d41bffacd
[motion2.git] / server / api / analyticTreeReport / index.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 _0x85ed=['show','post','create','delete','destroy','exports','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','isAuthenticated','/:id'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x85ed,0xa6));var _0xd85e=function(_0x2dadb9,_0x42cfe6){_0x2dadb9=_0x2dadb9-0x0;var _0x2f0097=_0x85ed[_0x2dadb9];return _0x2f0097;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xd85e('0x0'));var express=require(_0xd85e('0x1'));var router=express[_0xd85e('0x2')]();var fs_extra=require(_0xd85e('0x3'));var auth=require(_0xd85e('0x4'));var interaction=require(_0xd85e('0x5'));var config=require(_0xd85e('0x6'));var controller=require(_0xd85e('0x7'));router['get']('/',auth[_0xd85e('0x8')](),controller['index']);router['get'](_0xd85e('0x9'),auth[_0xd85e('0x8')](),controller[_0xd85e('0xa')]);router[_0xd85e('0xb')]('/',auth[_0xd85e('0x8')](),controller[_0xd85e('0xc')]);router['put'](_0xd85e('0x9'),auth[_0xd85e('0x8')](),controller['update']);router[_0xd85e('0xd')](_0xd85e('0x9'),auth[_0xd85e('0x8')](),controller[_0xd85e('0xe')]);module[_0xd85e('0xf')]=router;