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 _0x79bb=['post','isAuthenticated','create','put','/:id','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMail.controller','index','get','show','/:id/messages'];(function(_0xca1746,_0xa91a5f){var _0x2a91f6=function(_0x58962b){while(--_0x58962b){_0xca1746['push'](_0xca1746['shift']());}};_0x2a91f6(++_0xa91a5f);}(_0x79bb,0x197));var _0xb79b=function(_0x983337,_0x576ccf){_0x983337=_0x983337-0x0;var _0x48dd5f=_0x79bb[_0x983337];return _0x48dd5f;};'use strict';var multer=require(_0xb79b('0x0'));var util=require(_0xb79b('0x1'));var path=require(_0xb79b('0x2'));var timeout=require(_0xb79b('0x3'));var express=require('express');var router=express[_0xb79b('0x4')]();var auth=require(_0xb79b('0x5'));var interaction=require(_0xb79b('0x6'));var config=require(_0xb79b('0x7'));var controller=require(_0xb79b('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0xb79b('0x9')]);router[_0xb79b('0xa')]('/:id',auth['isAuthenticated'](),controller[_0xb79b('0xb')]);router[_0xb79b('0xa')](_0xb79b('0xc'),auth['isAuthenticated'](),controller['getMessages']);router[_0xb79b('0xd')]('/',auth[_0xb79b('0xe')](),controller[_0xb79b('0xf')]);router[_0xb79b('0x10')](_0xb79b('0x11'),auth[_0xb79b('0xe')](),controller['update']);router['delete'](_0xb79b('0x11'),auth['isAuthenticated'](),controller[_0xb79b('0x12')]);module[_0xb79b('0x13')]=router;