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 _0xf225=['Router','fs-extra','../../config/environment','./jscriptyAnswerReport.controller','get','index','/describe','describe','isAuthenticated','create','put','/:id','update','delete','destroy','multer','path','connect-timeout','express'];(function(_0x3ece2a,_0x507668){var _0x34c0a4=function(_0x19e5a1){while(--_0x19e5a1){_0x3ece2a['push'](_0x3ece2a['shift']());}};_0x34c0a4(++_0x507668);}(_0xf225,0x94));var _0x5f22=function(_0x28d830,_0xc81ee0){_0x28d830=_0x28d830-0x0;var _0x4c4439=_0xf225[_0x28d830];return _0x4c4439;};'use strict';var multer=require(_0x5f22('0x0'));var util=require('util');var path=require(_0x5f22('0x1'));var timeout=require(_0x5f22('0x2'));var express=require(_0x5f22('0x3'));var router=express[_0x5f22('0x4')]();var fs_extra=require(_0x5f22('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x5f22('0x6'));var controller=require(_0x5f22('0x7'));router[_0x5f22('0x8')]('/',auth['isAuthenticated'](),controller[_0x5f22('0x9')]);router[_0x5f22('0x8')](_0x5f22('0xa'),auth['isAuthenticated'](),controller[_0x5f22('0xb')]);router[_0x5f22('0x8')]('/:id',auth[_0x5f22('0xc')](),controller['show']);router['post']('/',auth[_0x5f22('0xc')](),controller[_0x5f22('0xd')]);router[_0x5f22('0xe')](_0x5f22('0xf'),auth[_0x5f22('0xc')](),controller[_0x5f22('0x10')]);router[_0x5f22('0x11')](_0x5f22('0xf'),auth['isAuthenticated'](),controller[_0x5f22('0x12')]);module['exports']=router;