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 _0x3b68=['/:id','show','create','put','destroy','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceChanSpy.controller','isAuthenticated','get'];(function(_0x47c5bf,_0x45977e){var _0x11b779=function(_0x1bd585){while(--_0x1bd585){_0x47c5bf['push'](_0x47c5bf['shift']());}};_0x11b779(++_0x45977e);}(_0x3b68,0x1a5));var _0x83b6=function(_0xebe7eb,_0x21b45e){_0xebe7eb=_0xebe7eb-0x0;var _0x1a67e8=_0x3b68[_0xebe7eb];return _0x1a67e8;};'use strict';var multer=require(_0x83b6('0x0'));var util=require('util');var path=require(_0x83b6('0x1'));var timeout=require(_0x83b6('0x2'));var express=require(_0x83b6('0x3'));var router=express[_0x83b6('0x4')]();var auth=require(_0x83b6('0x5'));var interaction=require(_0x83b6('0x6'));var config=require(_0x83b6('0x7'));var controller=require(_0x83b6('0x8'));router['get']('/',auth[_0x83b6('0x9')](),controller['index']);router[_0x83b6('0xa')](_0x83b6('0xb'),auth['isAuthenticated'](),controller[_0x83b6('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x83b6('0xd')]);router[_0x83b6('0xe')]('/:id',auth[_0x83b6('0x9')](),controller['update']);router['delete'](_0x83b6('0xb'),auth['isAuthenticated'](),controller[_0x83b6('0xf')]);module['exports']=router;