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 _0xdbf5=['../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller','get','isAuthenticated','index','/describe','show','/:id/questions','getQuestions','create','delete','/:id','destroy','exports','util','express','Router','fs-extra'];(function(_0x466349,_0x20089f){var _0x5b31f0=function(_0x9303f4){while(--_0x9303f4){_0x466349['push'](_0x466349['shift']());}};_0x5b31f0(++_0x20089f);}(_0xdbf5,0x18c));var _0x5dbf=function(_0x42b18a,_0x3284ba){_0x42b18a=_0x42b18a-0x0;var _0x534646=_0xdbf5[_0x42b18a];return _0x534646;};'use strict';var multer=require('multer');var util=require(_0x5dbf('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x5dbf('0x1'));var router=express[_0x5dbf('0x2')]();var fs_extra=require(_0x5dbf('0x3'));var auth=require(_0x5dbf('0x4'));var interaction=require(_0x5dbf('0x5'));var config=require(_0x5dbf('0x6'));var controller=require(_0x5dbf('0x7'));router[_0x5dbf('0x8')]('/',auth[_0x5dbf('0x9')](),controller[_0x5dbf('0xa')]);router[_0x5dbf('0x8')](_0x5dbf('0xb'),auth[_0x5dbf('0x9')](),controller['describe']);router[_0x5dbf('0x8')]('/:id',auth[_0x5dbf('0x9')](),controller[_0x5dbf('0xc')]);router[_0x5dbf('0x8')](_0x5dbf('0xd'),auth['isAuthenticated'](),controller[_0x5dbf('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x5dbf('0xf')]);router['put']('/:id',auth[_0x5dbf('0x9')](),controller['update']);router[_0x5dbf('0x10')](_0x5dbf('0x11'),auth[_0x5dbf('0x9')](),controller[_0x5dbf('0x12')]);module[_0x5dbf('0x13')]=router;