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 _0x45d0=['Router','../../config/environment','get','isAuthenticated','index','/:id','show','getMessages','create','put','update','destroy','exports','multer','util','express'];(function(_0x4b4f24,_0x5654a8){var _0x1c13d4=function(_0x4940bf){while(--_0x4940bf){_0x4b4f24['push'](_0x4b4f24['shift']());}};_0x1c13d4(++_0x5654a8);}(_0x45d0,0x15d));var _0x045d=function(_0x264954,_0x4de852){_0x264954=_0x264954-0x0;var _0x8f4e0e=_0x45d0[_0x264954];return _0x8f4e0e;};'use strict';var multer=require(_0x045d('0x0'));var util=require(_0x045d('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x045d('0x2'));var router=express[_0x045d('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x045d('0x4'));var controller=require('./voiceMail.controller');router[_0x045d('0x5')]('/',auth[_0x045d('0x6')](),controller[_0x045d('0x7')]);router[_0x045d('0x5')](_0x045d('0x8'),auth[_0x045d('0x6')](),controller[_0x045d('0x9')]);router[_0x045d('0x5')]('/:id/messages',auth[_0x045d('0x6')](),controller[_0x045d('0xa')]);router['post']('/',auth[_0x045d('0x6')](),controller[_0x045d('0xb')]);router[_0x045d('0xc')](_0x045d('0x8'),auth[_0x045d('0x6')](),controller[_0x045d('0xd')]);router['delete'](_0x045d('0x8'),auth[_0x045d('0x6')](),controller[_0x045d('0xe')]);module[_0x045d('0xf')]=router;