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 _0xe1bf=['get','isAuthenticated','index','/:id','show','/:id/messages','post','create','destroy','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMail.controller'];(function(_0x461466,_0x3764f1){var _0x4237f8=function(_0x3d6df1){while(--_0x3d6df1){_0x461466['push'](_0x461466['shift']());}};_0x4237f8(++_0x3764f1);}(_0xe1bf,0x196));var _0xfe1b=function(_0x403c5e,_0x2d424a){_0x403c5e=_0x403c5e-0x0;var _0x2f3909=_0xe1bf[_0x403c5e];return _0x2f3909;};'use strict';var multer=require('multer');var util=require(_0xfe1b('0x0'));var path=require(_0xfe1b('0x1'));var timeout=require('connect-timeout');var express=require(_0xfe1b('0x2'));var router=express[_0xfe1b('0x3')]();var auth=require(_0xfe1b('0x4'));var interaction=require(_0xfe1b('0x5'));var config=require(_0xfe1b('0x6'));var controller=require(_0xfe1b('0x7'));router[_0xfe1b('0x8')]('/',auth[_0xfe1b('0x9')](),controller[_0xfe1b('0xa')]);router[_0xfe1b('0x8')](_0xfe1b('0xb'),auth[_0xfe1b('0x9')](),controller[_0xfe1b('0xc')]);router[_0xfe1b('0x8')](_0xfe1b('0xd'),auth['isAuthenticated'](),controller['getMessages']);router[_0xfe1b('0xe')]('/',auth[_0xfe1b('0x9')](),controller[_0xfe1b('0xf')]);router['put'](_0xfe1b('0xb'),auth[_0xfe1b('0x9')](),controller['update']);router['delete'](_0xfe1b('0xb'),auth[_0xfe1b('0x9')](),controller[_0xfe1b('0x10')]);module[_0xfe1b('0x11')]=router;