Built motion from commit e1760111.|2.6.18
[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 _0xb300=['put','update','delete','destroy','multer','util','path','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceMailMessage.controller','get','/:id','isAuthenticated','show','/:id/download','download','create'];(function(_0x52fc70,_0x3b299e){var _0x1b0b7a=function(_0x17f0c6){while(--_0x17f0c6){_0x52fc70['push'](_0x52fc70['shift']());}};_0x1b0b7a(++_0x3b299e);}(_0xb300,0x190));var _0x0b30=function(_0x5b2f1b,_0x2e8989){_0x5b2f1b=_0x5b2f1b-0x0;var _0x4a6dfd=_0xb300[_0x5b2f1b];return _0x4a6dfd;};'use strict';var multer=require(_0x0b30('0x0'));var util=require(_0x0b30('0x1'));var path=require(_0x0b30('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x0b30('0x3'));var auth=require(_0x0b30('0x4'));var interaction=require(_0x0b30('0x5'));var config=require('../../config/environment');var controller=require(_0x0b30('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x0b30('0x7')](_0x0b30('0x8'),auth[_0x0b30('0x9')](),controller[_0x0b30('0xa')]);router[_0x0b30('0x7')](_0x0b30('0xb'),auth[_0x0b30('0x9')](),controller[_0x0b30('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x0b30('0xd')]);router[_0x0b30('0xe')](_0x0b30('0x8'),auth[_0x0b30('0x9')](),controller[_0x0b30('0xf')]);router[_0x0b30('0x10')](_0x0b30('0x8'),auth['isAuthenticated'](),controller[_0x0b30('0x11')]);module['exports']=router;