a170afb715e4c88cbf16d8cf5058bde983d4bec9
[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 _0xedbb=['../../config/environment','get','/:id','isAuthenticated','show','/:id/download','post','create','update','delete','destroy','exports','path','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x42245d,_0x51758f){var _0x4b211a=function(_0x2634e){while(--_0x2634e){_0x42245d['push'](_0x42245d['shift']());}};_0x4b211a(++_0x51758f);}(_0xedbb,0x8c));var _0xbedb=function(_0x19ae3c,_0x36ef3a){_0x19ae3c=_0x19ae3c-0x0;var _0x5e155a=_0xedbb[_0x19ae3c];return _0x5e155a;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xbedb('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xbedb('0x1')]();var auth=require(_0xbedb('0x2'));var interaction=require(_0xbedb('0x3'));var config=require(_0xbedb('0x4'));var controller=require('./voiceMailMessage.controller');router[_0xbedb('0x5')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xbedb('0x6'),auth[_0xbedb('0x7')](),controller[_0xbedb('0x8')]);router['get'](_0xbedb('0x9'),auth[_0xbedb('0x7')](),controller['download']);router[_0xbedb('0xa')]('/',auth[_0xbedb('0x7')](),controller[_0xbedb('0xb')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xbedb('0xc')]);router[_0xbedb('0xd')](_0xbedb('0x6'),auth[_0xbedb('0x7')](),controller[_0xbedb('0xe')]);module[_0xbedb('0xf')]=router;