cc557088a37394543bd184bfb58eca3899d16d09
[motion2.git] / server / api / voiceMail / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x8ca8=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceMail.controller','get','isAuthenticated','index','/:id','show','getMessages','create','put','delete','destroy','exports','multer'];(function(_0x47fd36,_0x41535d){var _0x21a0fc=function(_0x44c07c){while(--_0x44c07c){_0x47fd36['push'](_0x47fd36['shift']());}};_0x21a0fc(++_0x41535d);}(_0x8ca8,0xe3));var _0x88ca=function(_0x53e33f,_0x2024e5){_0x53e33f=_0x53e33f-0x0;var _0x2140b0=_0x8ca8[_0x53e33f];return _0x2140b0;};'use strict';var multer=require(_0x88ca('0x0'));var util=require('util');var path=require(_0x88ca('0x1'));var timeout=require(_0x88ca('0x2'));var express=require(_0x88ca('0x3'));var router=express[_0x88ca('0x4')]();var auth=require(_0x88ca('0x5'));var interaction=require(_0x88ca('0x6'));var config=require('../../config/environment');var controller=require(_0x88ca('0x7'));router[_0x88ca('0x8')]('/',auth[_0x88ca('0x9')](),controller[_0x88ca('0xa')]);router[_0x88ca('0x8')](_0x88ca('0xb'),auth['isAuthenticated'](),controller[_0x88ca('0xc')]);router[_0x88ca('0x8')]('/:id/messages',auth[_0x88ca('0x9')](),controller[_0x88ca('0xd')]);router['post']('/',auth[_0x88ca('0x9')](),controller[_0x88ca('0xe')]);router[_0x88ca('0xf')](_0x88ca('0xb'),auth[_0x88ca('0x9')](),controller['update']);router[_0x88ca('0x10')](_0x88ca('0xb'),auth[_0x88ca('0x9')](),controller[_0x88ca('0x11')]);module[_0x88ca('0x12')]=router;