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