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 _0xb619=['get','isAuthenticated','index','/:id/download','post','create','put','/:id','delete','destroy','multer','util','path','connect-timeout','fs-extra','../../components/interaction/service'];(function(_0x28a302,_0x5e0875){var _0x46b937=function(_0x383f0e){while(--_0x383f0e){_0x28a302['push'](_0x28a302['shift']());}};_0x46b937(++_0x5e0875);}(_0xb619,0xda));var _0x9b61=function(_0x3639f4,_0x44475b){_0x3639f4=_0x3639f4-0x0;var _0x5a2922=_0xb619[_0x3639f4];return _0x5a2922;};'use strict';var multer=require(_0x9b61('0x0'));var util=require(_0x9b61('0x1'));var path=require(_0x9b61('0x2'));var timeout=require(_0x9b61('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x9b61('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x9b61('0x5'));var config=require('../../config/environment');var controller=require('./voiceMailMessage.controller');router[_0x9b61('0x6')]('/',auth[_0x9b61('0x7')](),controller[_0x9b61('0x8')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0x9b61('0x6')](_0x9b61('0x9'),auth[_0x9b61('0x7')](),controller['download']);router[_0x9b61('0xa')]('/',auth['isAuthenticated'](),controller[_0x9b61('0xb')]);router[_0x9b61('0xc')](_0x9b61('0xd'),auth[_0x9b61('0x7')](),controller['update']);router[_0x9b61('0xe')]('/:id',auth[_0x9b61('0x7')](),controller[_0x9b61('0xf')]);module['exports']=router;