3ca5be5a8348da0759638efe6f21074bb9adaca1
[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 _0xb8eb=['index','/:id','isAuthenticated','show','/:id/messages','getMessages','create','put','update','delete','destroy','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./voiceMail.controller','get'];(function(_0x364731,_0x5c7121){var _0x3b6baa=function(_0x3fc287){while(--_0x3fc287){_0x364731['push'](_0x364731['shift']());}};_0x3b6baa(++_0x5c7121);}(_0xb8eb,0x161));var _0xbb8e=function(_0x573e7f,_0x2739c8){_0x573e7f=_0x573e7f-0x0;var _0x15de14=_0xb8eb[_0x573e7f];return _0x15de14;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xbb8e('0x0'));var timeout=require(_0xbb8e('0x1'));var express=require('express');var router=express[_0xbb8e('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0xbb8e('0x3'));var config=require(_0xbb8e('0x4'));var controller=require(_0xbb8e('0x5'));router[_0xbb8e('0x6')]('/',auth['isAuthenticated'](),controller[_0xbb8e('0x7')]);router[_0xbb8e('0x6')](_0xbb8e('0x8'),auth[_0xbb8e('0x9')](),controller[_0xbb8e('0xa')]);router[_0xbb8e('0x6')](_0xbb8e('0xb'),auth[_0xbb8e('0x9')](),controller[_0xbb8e('0xc')]);router['post']('/',auth[_0xbb8e('0x9')](),controller[_0xbb8e('0xd')]);router[_0xbb8e('0xe')](_0xbb8e('0x8'),auth['isAuthenticated'](),controller[_0xbb8e('0xf')]);router[_0xbb8e('0x10')]('/:id',auth[_0xbb8e('0x9')](),controller[_0xbb8e('0x11')]);module['exports']=router;