4c8d4f3497b3c68ee761bcd5a39bec3c103dcc6f
[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 _0xe9a9=['./voiceMail.controller','isAuthenticated','get','/:id','show','/:id/messages','getMessages','post','put','update','delete','destroy','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x1fdd09,_0x188de4){var _0x52c681=function(_0x2ac787){while(--_0x2ac787){_0x1fdd09['push'](_0x1fdd09['shift']());}};_0x52c681(++_0x188de4);}(_0xe9a9,0x1b0));var _0x9e9a=function(_0x1b936a,_0x5ef741){_0x1b936a=_0x1b936a-0x0;var _0x16b940=_0xe9a9[_0x1b936a];return _0x16b940;};'use strict';var multer=require(_0x9e9a('0x0'));var util=require('util');var path=require(_0x9e9a('0x1'));var timeout=require(_0x9e9a('0x2'));var express=require(_0x9e9a('0x3'));var router=express[_0x9e9a('0x4')]();var auth=require(_0x9e9a('0x5'));var interaction=require(_0x9e9a('0x6'));var config=require(_0x9e9a('0x7'));var controller=require(_0x9e9a('0x8'));router['get']('/',auth[_0x9e9a('0x9')](),controller['index']);router[_0x9e9a('0xa')](_0x9e9a('0xb'),auth[_0x9e9a('0x9')](),controller[_0x9e9a('0xc')]);router[_0x9e9a('0xa')](_0x9e9a('0xd'),auth[_0x9e9a('0x9')](),controller[_0x9e9a('0xe')]);router[_0x9e9a('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0x9e9a('0x10')](_0x9e9a('0xb'),auth['isAuthenticated'](),controller[_0x9e9a('0x11')]);router[_0x9e9a('0x12')](_0x9e9a('0xb'),auth[_0x9e9a('0x9')](),controller[_0x9e9a('0x13')]);module['exports']=router;