9f1fc9e58acb31e9d6431fff22c7efb2e4e20c05
[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 _0x1762=['create','update','/:id','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get','show','/:id/download','isAuthenticated','download','post'];(function(_0x5e0bfe,_0x747312){var _0x6468b8=function(_0x20e5e0){while(--_0x20e5e0){_0x5e0bfe['push'](_0x5e0bfe['shift']());}};_0x6468b8(++_0x747312);}(_0x1762,0x100));var _0x2176=function(_0x22f306,_0x2caec5){_0x22f306=_0x22f306-0x0;var _0xb246a1=_0x1762[_0x22f306];return _0xb246a1;};'use strict';var multer=require(_0x2176('0x0'));var util=require(_0x2176('0x1'));var path=require(_0x2176('0x2'));var timeout=require(_0x2176('0x3'));var express=require(_0x2176('0x4'));var router=express[_0x2176('0x5')]();var fs_extra=require(_0x2176('0x6'));var auth=require(_0x2176('0x7'));var interaction=require(_0x2176('0x8'));var config=require(_0x2176('0x9'));var controller=require('./voiceMailMessage.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x2176('0xa')]);router[_0x2176('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x2176('0xc')]);router['get'](_0x2176('0xd'),auth[_0x2176('0xe')](),controller[_0x2176('0xf')]);router[_0x2176('0x10')]('/',auth[_0x2176('0xe')](),controller[_0x2176('0x11')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x2176('0x12')]);router['delete'](_0x2176('0x13'),auth[_0x2176('0xe')](),controller[_0x2176('0x14')]);module['exports']=router;