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 _0xa381=['delete','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','/:id/messages','post','create','put','update'];(function(_0x19def1,_0x4ed188){var _0x556ee9=function(_0x36b75e){while(--_0x36b75e){_0x19def1['push'](_0x19def1['shift']());}};_0x556ee9(++_0x4ed188);}(_0xa381,0x6a));var _0x1a38=function(_0xb82d09,_0x1ce659){_0xb82d09=_0xb82d09-0x0;var _0x2a699e=_0xa381[_0xb82d09];return _0x2a699e;};'use strict';var multer=require('multer');var util=require(_0x1a38('0x0'));var path=require(_0x1a38('0x1'));var timeout=require('connect-timeout');var express=require(_0x1a38('0x2'));var router=express['Router']();var auth=require(_0x1a38('0x3'));var interaction=require(_0x1a38('0x4'));var config=require(_0x1a38('0x5'));var controller=require('./voiceMail.controller');router[_0x1a38('0x6')]('/',auth[_0x1a38('0x7')](),controller['index']);router[_0x1a38('0x6')](_0x1a38('0x8'),auth[_0x1a38('0x7')](),controller['show']);router[_0x1a38('0x6')](_0x1a38('0x9'),auth['isAuthenticated'](),controller['getMessages']);router[_0x1a38('0xa')]('/',auth[_0x1a38('0x7')](),controller[_0x1a38('0xb')]);router[_0x1a38('0xc')]('/:id',auth[_0x1a38('0x7')](),controller[_0x1a38('0xd')]);router[_0x1a38('0xe')](_0x1a38('0x8'),auth[_0x1a38('0x7')](),controller['destroy']);module['exports']=router;