35cce1106805e3f77b15830b00cd167152f4d435
[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 _0x57b5=['../../config/environment','./analyticTreeReport.controller','isAuthenticated','index','get','/:id','show','post','create','put','update','delete','exports','multer','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x4f4fd5,_0x2dc33a){var _0xe67be6=function(_0x2c4fb6){while(--_0x2c4fb6){_0x4f4fd5['push'](_0x4f4fd5['shift']());}};_0xe67be6(++_0x2dc33a);}(_0x57b5,0xa5));var _0x557b=function(_0x1fd6f4,_0x4b8481){_0x1fd6f4=_0x1fd6f4-0x0;var _0x32b7f1=_0x57b5[_0x1fd6f4];return _0x32b7f1;};'use strict';var multer=require(_0x557b('0x0'));var util=require('util');var path=require(_0x557b('0x1'));var timeout=require(_0x557b('0x2'));var express=require(_0x557b('0x3'));var router=express[_0x557b('0x4')]();var auth=require(_0x557b('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x557b('0x6'));var controller=require(_0x557b('0x7'));router['get']('/',auth[_0x557b('0x8')](),controller[_0x557b('0x9')]);router[_0x557b('0xa')](_0x557b('0xb'),auth[_0x557b('0x8')](),controller[_0x557b('0xc')]);router[_0x557b('0xd')]('/',auth[_0x557b('0x8')](),controller[_0x557b('0xe')]);router[_0x557b('0xf')](_0x557b('0xb'),auth['isAuthenticated'](),controller[_0x557b('0x10')]);router[_0x557b('0x11')](_0x557b('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0x557b('0x12')]=router;