bf9b29e99aac1eed2420fafee8ea41d3fa197ba9
[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 _0x68a2=['multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMail.controller','get','isAuthenticated','index','show','/:id/messages','post','/:id','update','delete','destroy','exports'];(function(_0x4440b2,_0x10863e){var _0x528d77=function(_0x23b583){while(--_0x23b583){_0x4440b2['push'](_0x4440b2['shift']());}};_0x528d77(++_0x10863e);}(_0x68a2,0x78));var _0x268a=function(_0x2d6ef2,_0x2f8091){_0x2d6ef2=_0x2d6ef2-0x0;var _0x33af33=_0x68a2[_0x2d6ef2];return _0x33af33;};'use strict';var multer=require(_0x268a('0x0'));var util=require(_0x268a('0x1'));var path=require(_0x268a('0x2'));var timeout=require(_0x268a('0x3'));var express=require('express');var router=express[_0x268a('0x4')]();var auth=require(_0x268a('0x5'));var interaction=require(_0x268a('0x6'));var config=require(_0x268a('0x7'));var controller=require(_0x268a('0x8'));router[_0x268a('0x9')]('/',auth[_0x268a('0xa')](),controller[_0x268a('0xb')]);router[_0x268a('0x9')]('/:id',auth[_0x268a('0xa')](),controller[_0x268a('0xc')]);router[_0x268a('0x9')](_0x268a('0xd'),auth['isAuthenticated'](),controller['getMessages']);router[_0x268a('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x268a('0xf'),auth['isAuthenticated'](),controller[_0x268a('0x10')]);router[_0x268a('0x11')](_0x268a('0xf'),auth[_0x268a('0xa')](),controller[_0x268a('0x12')]);module[_0x268a('0x13')]=router;