85713d5776e793cc8d92ca715366e3292113263d
[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 _0x326f=['./voiceMailMessage.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','destroy','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0xa44552,_0xa90b29){var _0x2e19cb=function(_0x2f75fa){while(--_0x2f75fa){_0xa44552['push'](_0xa44552['shift']());}};_0x2e19cb(++_0xa90b29);}(_0x326f,0xd1));var _0xf326=function(_0x24e2b8,_0x4bebef){_0x24e2b8=_0x24e2b8-0x0;var _0x3c7a41=_0x326f[_0x24e2b8];return _0x3c7a41;};'use strict';var multer=require(_0xf326('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xf326('0x1'));var express=require(_0xf326('0x2'));var router=express[_0xf326('0x3')]();var auth=require(_0xf326('0x4'));var interaction=require(_0xf326('0x5'));var config=require(_0xf326('0x6'));var controller=require(_0xf326('0x7'));router[_0xf326('0x8')]('/',auth[_0xf326('0x9')](),controller[_0xf326('0xa')]);router['get'](_0xf326('0xb'),auth[_0xf326('0x9')](),controller[_0xf326('0xc')]);router[_0xf326('0x8')]('/:id/download',auth['isAuthenticated'](),controller['download']);router[_0xf326('0xd')]('/',auth[_0xf326('0x9')](),controller[_0xf326('0xe')]);router[_0xf326('0xf')](_0xf326('0xb'),auth['isAuthenticated'](),controller[_0xf326('0x10')]);router['delete'](_0xf326('0xb'),auth['isAuthenticated'](),controller[_0xf326('0x11')]);module['exports']=router;