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