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