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