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 _0xa486=['multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./jscriptyAnswerReport.controller','get','isAuthenticated','index','/describe','describe','show','post','create','/:id','update','delete'];(function(_0x36dfbd,_0x5bfe2d){var _0x4ecad9=function(_0x5230da){while(--_0x5230da){_0x36dfbd['push'](_0x36dfbd['shift']());}};_0x4ecad9(++_0x5bfe2d);}(_0xa486,0x156));var _0x6a48=function(_0x38b746,_0x47b300){_0x38b746=_0x38b746-0x0;var _0x36f200=_0xa486[_0x38b746];return _0x36f200;};'use strict';var multer=require(_0x6a48('0x0'));var util=require('util');var path=require(_0x6a48('0x1'));var timeout=require(_0x6a48('0x2'));var express=require(_0x6a48('0x3'));var router=express[_0x6a48('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x6a48('0x5'));var config=require(_0x6a48('0x6'));var controller=require(_0x6a48('0x7'));router[_0x6a48('0x8')]('/',auth[_0x6a48('0x9')](),controller[_0x6a48('0xa')]);router[_0x6a48('0x8')](_0x6a48('0xb'),auth['isAuthenticated'](),controller[_0x6a48('0xc')]);router['get']('/:id',auth[_0x6a48('0x9')](),controller[_0x6a48('0xd')]);router[_0x6a48('0xe')]('/',auth[_0x6a48('0x9')](),controller[_0x6a48('0xf')]);router['put'](_0x6a48('0x10'),auth[_0x6a48('0x9')](),controller[_0x6a48('0x11')]);router[_0x6a48('0x12')]('/:id',auth[_0x6a48('0x9')](),controller['destroy']);module['exports']=router;