ccb24daeea9a18832ee08463724f71656a961c4f
[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 _0x4975=['exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','get','isAuthenticated','show','post','create','put','/:id','update','delete'];(function(_0x2fd1a7,_0x557691){var _0x5af06c=function(_0x376062){while(--_0x376062){_0x2fd1a7['push'](_0x2fd1a7['shift']());}};_0x5af06c(++_0x557691);}(_0x4975,0x86));var _0x5497=function(_0x48d988,_0x1f2bae){_0x48d988=_0x48d988-0x0;var _0x2c9ed6=_0x4975[_0x48d988];return _0x2c9ed6;};'use strict';var multer=require(_0x5497('0x0'));var util=require('util');var path=require(_0x5497('0x1'));var timeout=require(_0x5497('0x2'));var express=require(_0x5497('0x3'));var router=express[_0x5497('0x4')]();var auth=require(_0x5497('0x5'));var interaction=require(_0x5497('0x6'));var config=require(_0x5497('0x7'));var controller=require(_0x5497('0x8'));router[_0x5497('0x9')]('/',auth[_0x5497('0xa')](),controller['index']);router[_0x5497('0x9')]('/:id',auth[_0x5497('0xa')](),controller[_0x5497('0xb')]);router[_0x5497('0x9')]('/:id/download',auth[_0x5497('0xa')](),controller['download']);router[_0x5497('0xc')]('/',auth[_0x5497('0xa')](),controller[_0x5497('0xd')]);router[_0x5497('0xe')](_0x5497('0xf'),auth[_0x5497('0xa')](),controller[_0x5497('0x10')]);router[_0x5497('0x11')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x5497('0x12')]=router;