b51a5e1815c17a11ec1c29c791c1f8a1a6271db8
[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 _0xfec5=['path','../../components/auth/service','../../components/interaction/service','./voiceMail.controller','get','index','/:id','isAuthenticated','show','/:id/messages','post','create','put','update','destroy','exports','multer'];(function(_0x53a8d5,_0x148db1){var _0x50de0b=function(_0x2e784a){while(--_0x2e784a){_0x53a8d5['push'](_0x53a8d5['shift']());}};_0x50de0b(++_0x148db1);}(_0xfec5,0xa9));var _0x5fec=function(_0x6b1e30,_0x27089f){_0x6b1e30=_0x6b1e30-0x0;var _0x5edd13=_0xfec5[_0x6b1e30];return _0x5edd13;};'use strict';var multer=require(_0x5fec('0x0'));var util=require('util');var path=require(_0x5fec('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x5fec('0x2'));var interaction=require(_0x5fec('0x3'));var config=require('../../config/environment');var controller=require(_0x5fec('0x4'));router[_0x5fec('0x5')]('/',auth['isAuthenticated'](),controller[_0x5fec('0x6')]);router[_0x5fec('0x5')](_0x5fec('0x7'),auth[_0x5fec('0x8')](),controller[_0x5fec('0x9')]);router['get'](_0x5fec('0xa'),auth[_0x5fec('0x8')](),controller['getMessages']);router[_0x5fec('0xb')]('/',auth['isAuthenticated'](),controller[_0x5fec('0xc')]);router[_0x5fec('0xd')](_0x5fec('0x7'),auth[_0x5fec('0x8')](),controller[_0x5fec('0xe')]);router['delete'](_0x5fec('0x7'),auth[_0x5fec('0x8')](),controller[_0x5fec('0xf')]);module[_0x5fec('0x10')]=router;