0bd97182844b178e5164a81570e346cd542e7ffb
[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 _0xddcf=['/:id/download','post','create','put','/:id','update','delete','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','isAuthenticated','index','get'];(function(_0x2adbeb,_0x5581be){var _0x5e18a6=function(_0x84e42b){while(--_0x84e42b){_0x2adbeb['push'](_0x2adbeb['shift']());}};_0x5e18a6(++_0x5581be);}(_0xddcf,0x105));var _0xfddc=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0xddcf[_0x4a9fb1];return _0x348672;};'use strict';var multer=require('multer');var util=require(_0xfddc('0x0'));var path=require('path');var timeout=require(_0xfddc('0x1'));var express=require(_0xfddc('0x2'));var router=express[_0xfddc('0x3')]();var fs_extra=require(_0xfddc('0x4'));var auth=require(_0xfddc('0x5'));var interaction=require(_0xfddc('0x6'));var config=require(_0xfddc('0x7'));var controller=require(_0xfddc('0x8'));router['get']('/',auth[_0xfddc('0x9')](),controller[_0xfddc('0xa')]);router[_0xfddc('0xb')]('/:id',auth[_0xfddc('0x9')](),controller['show']);router[_0xfddc('0xb')](_0xfddc('0xc'),auth['isAuthenticated'](),controller['download']);router[_0xfddc('0xd')]('/',auth['isAuthenticated'](),controller[_0xfddc('0xe')]);router[_0xfddc('0xf')](_0xfddc('0x10'),auth['isAuthenticated'](),controller[_0xfddc('0x11')]);router[_0xfddc('0x12')](_0xfddc('0x10'),auth[_0xfddc('0x9')](),controller[_0xfddc('0x13')]);module[_0xfddc('0x14')]=router;