1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x65ab=['create','put','update','delete','destroy','exports','util','path','express','Router','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','isAuthenticated','show','post'];(function(_0x33d3c9,_0x2c95a8){var _0x1b9229=function(_0x1d4faf){while(--_0x1d4faf){_0x33d3c9['push'](_0x33d3c9['shift']());}};_0x1b9229(++_0x2c95a8);}(_0x65ab,0x66));var _0xb65a=function(_0x1ff0cb,_0x2b1303){_0x1ff0cb=_0x1ff0cb-0x0;var _0x1afb20=_0x65ab[_0x1ff0cb];return _0x1afb20;};'use strict';var multer=require('multer');var util=require(_0xb65a('0x0'));var path=require(_0xb65a('0x1'));var timeout=require('connect-timeout');var express=require(_0xb65a('0x2'));var router=express[_0xb65a('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xb65a('0x4'));var config=require(_0xb65a('0x5'));var controller=require(_0xb65a('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth[_0xb65a('0x7')](),controller[_0xb65a('0x8')]);router[_0xb65a('0x9')]('/',auth[_0xb65a('0x7')](),controller[_0xb65a('0xa')]);router[_0xb65a('0xb')]('/:id',auth['isAuthenticated'](),controller[_0xb65a('0xc')]);router[_0xb65a('0xd')]('/:id',auth[_0xb65a('0x7')](),controller[_0xb65a('0xe')]);module[_0xb65a('0xf')]=router;