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 _0xae43=['delete','destroy','exports','multer','util','path','Router','../../config/environment','./voiceMail.controller','isAuthenticated','index','/:id','show','get','/:id/messages','post'];(function(_0x25bea7,_0x49ab45){var _0x175952=function(_0x56a0b5){while(--_0x56a0b5){_0x25bea7['push'](_0x25bea7['shift']());}};_0x175952(++_0x49ab45);}(_0xae43,0x93));var _0x3ae4=function(_0x16eb19,_0x58cea4){_0x16eb19=_0x16eb19-0x0;var _0x312a25=_0xae43[_0x16eb19];return _0x312a25;};'use strict';var multer=require(_0x3ae4('0x0'));var util=require(_0x3ae4('0x1'));var path=require(_0x3ae4('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3ae4('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3ae4('0x4'));var controller=require(_0x3ae4('0x5'));router['get']('/',auth[_0x3ae4('0x6')](),controller[_0x3ae4('0x7')]);router['get'](_0x3ae4('0x8'),auth['isAuthenticated'](),controller[_0x3ae4('0x9')]);router[_0x3ae4('0xa')](_0x3ae4('0xb'),auth[_0x3ae4('0x6')](),controller['getMessages']);router[_0x3ae4('0xc')]('/',auth[_0x3ae4('0x6')](),controller['create']);router['put']('/:id',auth[_0x3ae4('0x6')](),controller['update']);router[_0x3ae4('0xd')](_0x3ae4('0x8'),auth[_0x3ae4('0x6')](),controller[_0x3ae4('0xe')]);module[_0x3ae4('0xf')]=router;