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 _0x7675=['delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./voiceMail.controller','get','/:id','isAuthenticated','show','post','create'];(function(_0x95eea4,_0x215ff3){var _0x1d9dbc=function(_0x530c2a){while(--_0x530c2a){_0x95eea4['push'](_0x95eea4['shift']());}};_0x1d9dbc(++_0x215ff3);}(_0x7675,0xcf));var _0x5767=function(_0x8fce60,_0x5908d0){_0x8fce60=_0x8fce60-0x0;var _0x57ee4d=_0x7675[_0x8fce60];return _0x57ee4d;};'use strict';var multer=require(_0x5767('0x0'));var util=require(_0x5767('0x1'));var path=require(_0x5767('0x2'));var timeout=require(_0x5767('0x3'));var express=require(_0x5767('0x4'));var router=express['Router']();var auth=require(_0x5767('0x5'));var interaction=require(_0x5767('0x6'));var config=require('../../config/environment');var controller=require(_0x5767('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x5767('0x8')](_0x5767('0x9'),auth[_0x5767('0xa')](),controller[_0x5767('0xb')]);router[_0x5767('0x8')]('/:id/messages',auth['isAuthenticated'](),controller['getMessages']);router[_0x5767('0xc')]('/',auth[_0x5767('0xa')](),controller[_0x5767('0xd')]);router['put'](_0x5767('0x9'),auth[_0x5767('0xa')](),controller['update']);router[_0x5767('0xe')](_0x5767('0x9'),auth[_0x5767('0xa')](),controller[_0x5767('0xf')]);module[_0x5767('0x10')]=router;