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