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 _0x99f5=['put','/:id','update','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','post','create'];(function(_0x5ada00,_0x4ad180){var _0x2ce3a0=function(_0x12a00c){while(--_0x12a00c){_0x5ada00['push'](_0x5ada00['shift']());}};_0x2ce3a0(++_0x4ad180);}(_0x99f5,0x16d));var _0x599f=function(_0x398275,_0x57f4c6){_0x398275=_0x398275-0x0;var _0x92a208=_0x99f5[_0x398275];return _0x92a208;};'use strict';var multer=require('multer');var util=require(_0x599f('0x0'));var path=require(_0x599f('0x1'));var timeout=require(_0x599f('0x2'));var express=require('express');var router=express[_0x599f('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x599f('0x4'));var interaction=require(_0x599f('0x5'));var config=require(_0x599f('0x6'));var controller=require('./analyticTreeReport.controller');router[_0x599f('0x7')]('/',auth[_0x599f('0x8')](),controller[_0x599f('0x9')]);router[_0x599f('0x7')]('/:id',auth[_0x599f('0x8')](),controller[_0x599f('0xa')]);router[_0x599f('0xb')]('/',auth[_0x599f('0x8')](),controller[_0x599f('0xc')]);router[_0x599f('0xd')](_0x599f('0xe'),auth[_0x599f('0x8')](),controller[_0x599f('0xf')]);router['delete'](_0x599f('0xe'),auth[_0x599f('0x8')](),controller[_0x599f('0x10')]);module[_0x599f('0x11')]=router;