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 _0x5b51=['util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','get','index','/:id','isAuthenticated','show','put','destroy','exports','multer'];(function(_0x2ff30a,_0x35ac08){var _0x590831=function(_0x2117d1){while(--_0x2117d1){_0x2ff30a['push'](_0x2ff30a['shift']());}};_0x590831(++_0x35ac08);}(_0x5b51,0x1ca));var _0x15b5=function(_0x582d0b,_0x28f609){_0x582d0b=_0x582d0b-0x0;var _0x2e93e1=_0x5b51[_0x582d0b];return _0x2e93e1;};'use strict';var multer=require(_0x15b5('0x0'));var util=require(_0x15b5('0x1'));var path=require(_0x15b5('0x2'));var timeout=require('connect-timeout');var express=require(_0x15b5('0x3'));var router=express['Router']();var fs_extra=require(_0x15b5('0x4'));var auth=require(_0x15b5('0x5'));var interaction=require(_0x15b5('0x6'));var config=require(_0x15b5('0x7'));var controller=require(_0x15b5('0x8'));router[_0x15b5('0x9')]('/',auth['isAuthenticated'](),controller[_0x15b5('0xa')]);router['get'](_0x15b5('0xb'),auth[_0x15b5('0xc')](),controller[_0x15b5('0xd')]);router['post']('/',auth[_0x15b5('0xc')](),controller['create']);router[_0x15b5('0xe')]('/:id',auth[_0x15b5('0xc')](),controller['update']);router['delete'](_0x15b5('0xb'),auth[_0x15b5('0xc')](),controller[_0x15b5('0xf')]);module[_0x15b5('0x10')]=router;