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 _0xa692=['get','/describe','describe','/:id','create','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller','isAuthenticated','index'];(function(_0x403dd4,_0x47fedc){var _0x497279=function(_0xe5967e){while(--_0xe5967e){_0x403dd4['push'](_0x403dd4['shift']());}};_0x497279(++_0x47fedc);}(_0xa692,0xba));var _0x2a69=function(_0x38325,_0x262d3c){_0x38325=_0x38325-0x0;var _0x2994d6=_0xa692[_0x38325];return _0x2994d6;};'use strict';var multer=require(_0x2a69('0x0'));var util=require(_0x2a69('0x1'));var path=require(_0x2a69('0x2'));var timeout=require(_0x2a69('0x3'));var express=require('express');var router=express[_0x2a69('0x4')]();var fs_extra=require(_0x2a69('0x5'));var auth=require(_0x2a69('0x6'));var interaction=require(_0x2a69('0x7'));var config=require(_0x2a69('0x8'));var controller=require(_0x2a69('0x9'));router['get']('/',auth[_0x2a69('0xa')](),controller[_0x2a69('0xb')]);router[_0x2a69('0xc')](_0x2a69('0xd'),auth[_0x2a69('0xa')](),controller[_0x2a69('0xe')]);router[_0x2a69('0xc')](_0x2a69('0xf'),auth['isAuthenticated'](),controller['show']);router[_0x2a69('0xc')]('/:id/questions',auth[_0x2a69('0xa')](),controller['getQuestions']);router['post']('/',auth[_0x2a69('0xa')](),controller[_0x2a69('0x10')]);router['put'](_0x2a69('0xf'),auth[_0x2a69('0xa')](),controller['update']);router['delete'](_0x2a69('0xf'),auth[_0x2a69('0xa')](),controller['destroy']);module[_0x2a69('0x11')]=router;