563509a0e41bd3de75f75bd38e2ff8d6a0771fbb
[motion2.git] / server / api / voiceMailMessage / 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 _0xdbf5=['util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','get','isAuthenticated','index','/:id','show','/:id/download','download','post','create','delete','destroy'];(function(_0x5150c4,_0x52b08f){var _0x526f3a=function(_0xc719ba){while(--_0xc719ba){_0x5150c4['push'](_0x5150c4['shift']());}};_0x526f3a(++_0x52b08f);}(_0xdbf5,0x18c));var _0x5dbf=function(_0x55249b,_0x3edcbd){_0x55249b=_0x55249b-0x0;var _0x3340f=_0xdbf5[_0x55249b];return _0x3340f;};'use strict';var multer=require('multer');var util=require(_0x5dbf('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x5dbf('0x1'));var router=express[_0x5dbf('0x2')]();var auth=require(_0x5dbf('0x3'));var interaction=require(_0x5dbf('0x4'));var config=require(_0x5dbf('0x5'));var controller=require(_0x5dbf('0x6'));router[_0x5dbf('0x7')]('/',auth[_0x5dbf('0x8')](),controller[_0x5dbf('0x9')]);router[_0x5dbf('0x7')](_0x5dbf('0xa'),auth[_0x5dbf('0x8')](),controller[_0x5dbf('0xb')]);router['get'](_0x5dbf('0xc'),auth['isAuthenticated'](),controller[_0x5dbf('0xd')]);router[_0x5dbf('0xe')]('/',auth[_0x5dbf('0x8')](),controller[_0x5dbf('0xf')]);router['put'](_0x5dbf('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x5dbf('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x5dbf('0x11')]);module['exports']=router;