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 _0x69d3=['create','put','/:id','update','destroy','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','get','index','isAuthenticated','show'];(function(_0x3bf776,_0x4b6de4){var _0x1d97c3=function(_0x3b17f6){while(--_0x3b17f6){_0x3bf776['push'](_0x3bf776['shift']());}};_0x1d97c3(++_0x4b6de4);}(_0x69d3,0x125));var _0x369d=function(_0x351c6b,_0x5d0c14){_0x351c6b=_0x351c6b-0x0;var _0x26f7c9=_0x69d3[_0x351c6b];return _0x26f7c9;};'use strict';var multer=require(_0x369d('0x0'));var util=require(_0x369d('0x1'));var path=require(_0x369d('0x2'));var timeout=require('connect-timeout');var express=require(_0x369d('0x3'));var router=express['Router']();var fs_extra=require(_0x369d('0x4'));var auth=require(_0x369d('0x5'));var interaction=require(_0x369d('0x6'));var config=require(_0x369d('0x7'));var controller=require(_0x369d('0x8'));router[_0x369d('0x9')]('/',auth['isAuthenticated'](),controller[_0x369d('0xa')]);router[_0x369d('0x9')]('/:id',auth[_0x369d('0xb')](),controller[_0x369d('0xc')]);router[_0x369d('0x9')]('/:id/download',auth[_0x369d('0xb')](),controller['download']);router['post']('/',auth['isAuthenticated'](),controller[_0x369d('0xd')]);router[_0x369d('0xe')](_0x369d('0xf'),auth[_0x369d('0xb')](),controller[_0x369d('0x10')]);router['delete'](_0x369d('0xf'),auth[_0x369d('0xb')](),controller[_0x369d('0x11')]);module['exports']=router;