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 _0xeab1=['express','Router','../../config/environment','./voiceMail.controller','isAuthenticated','index','/:id','get','/:id/messages','getMessages','post','put','update','destroy','exports','multer','util','path','connect-timeout'];(function(_0x494f4d,_0x2807fa){var _0x3e7dfc=function(_0x14f2d2){while(--_0x14f2d2){_0x494f4d['push'](_0x494f4d['shift']());}};_0x3e7dfc(++_0x2807fa);}(_0xeab1,0xf3));var _0x1eab=function(_0x24c07a,_0x4e3dbe){_0x24c07a=_0x24c07a-0x0;var _0x30fb30=_0xeab1[_0x24c07a];return _0x30fb30;};'use strict';var multer=require(_0x1eab('0x0'));var util=require(_0x1eab('0x1'));var path=require(_0x1eab('0x2'));var timeout=require(_0x1eab('0x3'));var express=require(_0x1eab('0x4'));var router=express[_0x1eab('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1eab('0x6'));var controller=require(_0x1eab('0x7'));router['get']('/',auth[_0x1eab('0x8')](),controller[_0x1eab('0x9')]);router['get'](_0x1eab('0xa'),auth[_0x1eab('0x8')](),controller['show']);router[_0x1eab('0xb')](_0x1eab('0xc'),auth[_0x1eab('0x8')](),controller[_0x1eab('0xd')]);router[_0x1eab('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0x1eab('0xf')](_0x1eab('0xa'),auth['isAuthenticated'](),controller[_0x1eab('0x10')]);router['delete']('/:id',auth[_0x1eab('0x8')](),controller[_0x1eab('0x11')]);module[_0x1eab('0x12')]=router;