Built motion from commit e6806ed6.|2.6.0
[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 _0xe694=['/:id','/:id/download','download','create','put','update','destroy','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','get','isAuthenticated','index'];(function(_0x1ccdf7,_0x215d5a){var _0x52a0ae=function(_0x40324a){while(--_0x40324a){_0x1ccdf7['push'](_0x1ccdf7['shift']());}};_0x52a0ae(++_0x215d5a);}(_0xe694,0x93));var _0x4e69=function(_0x538b31,_0x80e294){_0x538b31=_0x538b31-0x0;var _0x4348f0=_0xe694[_0x538b31];return _0x4348f0;};'use strict';var multer=require(_0x4e69('0x0'));var util=require(_0x4e69('0x1'));var path=require(_0x4e69('0x2'));var timeout=require(_0x4e69('0x3'));var express=require('express');var router=express[_0x4e69('0x4')]();var fs_extra=require(_0x4e69('0x5'));var auth=require(_0x4e69('0x6'));var interaction=require(_0x4e69('0x7'));var config=require(_0x4e69('0x8'));var controller=require(_0x4e69('0x9'));router[_0x4e69('0xa')]('/',auth[_0x4e69('0xb')](),controller[_0x4e69('0xc')]);router['get'](_0x4e69('0xd'),auth[_0x4e69('0xb')](),controller['show']);router[_0x4e69('0xa')](_0x4e69('0xe'),auth[_0x4e69('0xb')](),controller[_0x4e69('0xf')]);router['post']('/',auth[_0x4e69('0xb')](),controller[_0x4e69('0x10')]);router[_0x4e69('0x11')](_0x4e69('0xd'),auth[_0x4e69('0xb')](),controller[_0x4e69('0x12')]);router['delete']('/:id',auth[_0x4e69('0xb')](),controller[_0x4e69('0x13')]);module['exports']=router;