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 _0x8b4e=['util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./voiceMail.controller','get','isAuthenticated','/:id','show','getMessages','post','update','multer'];(function(_0x1ef60b,_0x110f16){var _0x14543b=function(_0x308a61){while(--_0x308a61){_0x1ef60b['push'](_0x1ef60b['shift']());}};_0x14543b(++_0x110f16);}(_0x8b4e,0x158));var _0xe8b4=function(_0x4a9549,_0xd9a489){_0x4a9549=_0x4a9549-0x0;var _0x36f8d0=_0x8b4e[_0x4a9549];return _0x36f8d0;};'use strict';var multer=require(_0xe8b4('0x0'));var util=require(_0xe8b4('0x1'));var path=require('path');var timeout=require(_0xe8b4('0x2'));var express=require(_0xe8b4('0x3'));var router=express[_0xe8b4('0x4')]();var auth=require(_0xe8b4('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe8b4('0x6'));var controller=require(_0xe8b4('0x7'));router[_0xe8b4('0x8')]('/',auth[_0xe8b4('0x9')](),controller['index']);router['get'](_0xe8b4('0xa'),auth[_0xe8b4('0x9')](),controller[_0xe8b4('0xb')]);router[_0xe8b4('0x8')]('/:id/messages',auth[_0xe8b4('0x9')](),controller[_0xe8b4('0xc')]);router[_0xe8b4('0xd')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xe8b4('0xa'),auth['isAuthenticated'](),controller[_0xe8b4('0xe')]);router['delete'](_0xe8b4('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;