Built motion from commit 775e2a94.|2.6.3
[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 _0xa311=['create','put','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','show','/:id/download','isAuthenticated'];(function(_0x1905b4,_0x4aba85){var _0x26cb5e=function(_0x4745ac){while(--_0x4745ac){_0x1905b4['push'](_0x1905b4['shift']());}};_0x26cb5e(++_0x4aba85);}(_0xa311,0x148));var _0x1a31=function(_0x58965a,_0x2e71db){_0x58965a=_0x58965a-0x0;var _0x254efc=_0xa311[_0x58965a];return _0x254efc;};'use strict';var multer=require(_0x1a31('0x0'));var util=require(_0x1a31('0x1'));var path=require(_0x1a31('0x2'));var timeout=require('connect-timeout');var express=require(_0x1a31('0x3'));var router=express[_0x1a31('0x4')]();var fs_extra=require(_0x1a31('0x5'));var auth=require(_0x1a31('0x6'));var interaction=require(_0x1a31('0x7'));var config=require(_0x1a31('0x8'));var controller=require('./voiceMailMessage.controller');router[_0x1a31('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x1a31('0x9')](_0x1a31('0xa'),auth['isAuthenticated'](),controller[_0x1a31('0xb')]);router[_0x1a31('0x9')](_0x1a31('0xc'),auth[_0x1a31('0xd')](),controller['download']);router['post']('/',auth['isAuthenticated'](),controller[_0x1a31('0xe')]);router[_0x1a31('0xf')](_0x1a31('0xa'),auth[_0x1a31('0xd')](),controller['update']);router['delete'](_0x1a31('0xa'),auth['isAuthenticated'](),controller[_0x1a31('0x10')]);module[_0x1a31('0x11')]=router;