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 _0x91a4=['destroy','exports','multer','util','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','get','/:id','show','/:id/download','download','isAuthenticated','create','put','update','delete'];(function(_0x29de25,_0x41bcc8){var _0x28b5d0=function(_0x6e80c3){while(--_0x6e80c3){_0x29de25['push'](_0x29de25['shift']());}};_0x28b5d0(++_0x41bcc8);}(_0x91a4,0x1e2));var _0x491a=function(_0x2b1854,_0xb6249c){_0x2b1854=_0x2b1854-0x0;var _0x1bb311=_0x91a4[_0x2b1854];return _0x1bb311;};'use strict';var multer=require(_0x491a('0x0'));var util=require(_0x491a('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x491a('0x2'));var router=express[_0x491a('0x3')]();var fs_extra=require(_0x491a('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x491a('0x5'));var config=require(_0x491a('0x6'));var controller=require(_0x491a('0x7'));router[_0x491a('0x8')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x491a('0x9'),auth['isAuthenticated'](),controller[_0x491a('0xa')]);router[_0x491a('0x8')](_0x491a('0xb'),auth['isAuthenticated'](),controller[_0x491a('0xc')]);router['post']('/',auth[_0x491a('0xd')](),controller[_0x491a('0xe')]);router[_0x491a('0xf')](_0x491a('0x9'),auth[_0x491a('0xd')](),controller[_0x491a('0x10')]);router[_0x491a('0x11')]('/:id',auth[_0x491a('0xd')](),controller[_0x491a('0x12')]);module[_0x491a('0x13')]=router;