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