Built motion from commit (unavailable).|2.5.22
[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 _0x0a0a=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceMailMessage.controller','get','isAuthenticated','index','/:id/download','post','create','/:id','delete','destroy','multer','util','path'];(function(_0x437ff3,_0x99cc1d){var _0xaf8047=function(_0x3b6693){while(--_0x3b6693){_0x437ff3['push'](_0x437ff3['shift']());}};_0xaf8047(++_0x99cc1d);}(_0x0a0a,0xb1));var _0xa0a0=function(_0x4da7f9,_0x452d6f){_0x4da7f9=_0x4da7f9-0x0;var _0xa8a42a=_0x0a0a[_0x4da7f9];return _0xa8a42a;};'use strict';var multer=require(_0xa0a0('0x0'));var util=require(_0xa0a0('0x1'));var path=require(_0xa0a0('0x2'));var timeout=require(_0xa0a0('0x3'));var express=require(_0xa0a0('0x4'));var router=express[_0xa0a0('0x5')]();var auth=require(_0xa0a0('0x6'));var interaction=require(_0xa0a0('0x7'));var config=require('../../config/environment');var controller=require(_0xa0a0('0x8'));router[_0xa0a0('0x9')]('/',auth[_0xa0a0('0xa')](),controller[_0xa0a0('0xb')]);router[_0xa0a0('0x9')]('/:id',auth['isAuthenticated'](),controller['show']);router['get'](_0xa0a0('0xc'),auth[_0xa0a0('0xa')](),controller['download']);router[_0xa0a0('0xd')]('/',auth['isAuthenticated'](),controller[_0xa0a0('0xe')]);router['put'](_0xa0a0('0xf'),auth[_0xa0a0('0xa')](),controller['update']);router[_0xa0a0('0x10')](_0xa0a0('0xf'),auth['isAuthenticated'](),controller[_0xa0a0('0x11')]);module['exports']=router;