131619ebb6947eb452729c79b4b18d451d03f7c9
[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 _0xfc91=['connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','show','isAuthenticated','post','create','put','/:id','update','delete','destroy','exports','multer','util'];(function(_0x480663,_0x8d0761){var _0x50c148=function(_0x5c41b9){while(--_0x5c41b9){_0x480663['push'](_0x480663['shift']());}};_0x50c148(++_0x8d0761);}(_0xfc91,0x1b6));var _0x1fc9=function(_0x1aaaed,_0x15a650){_0x1aaaed=_0x1aaaed-0x0;var _0xf044a1=_0xfc91[_0x1aaaed];return _0xf044a1;};'use strict';var multer=require(_0x1fc9('0x0'));var util=require(_0x1fc9('0x1'));var path=require('path');var timeout=require(_0x1fc9('0x2'));var express=require(_0x1fc9('0x3'));var router=express['Router']();var fs_extra=require(_0x1fc9('0x4'));var auth=require(_0x1fc9('0x5'));var interaction=require(_0x1fc9('0x6'));var config=require(_0x1fc9('0x7'));var controller=require('./voiceMailMessage.controller');router[_0x1fc9('0x8')]('/',auth['isAuthenticated'](),controller[_0x1fc9('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x1fc9('0xa')]);router[_0x1fc9('0x8')]('/:id/download',auth[_0x1fc9('0xb')](),controller['download']);router[_0x1fc9('0xc')]('/',auth[_0x1fc9('0xb')](),controller[_0x1fc9('0xd')]);router[_0x1fc9('0xe')](_0x1fc9('0xf'),auth[_0x1fc9('0xb')](),controller[_0x1fc9('0x10')]);router[_0x1fc9('0x11')](_0x1fc9('0xf'),auth['isAuthenticated'](),controller[_0x1fc9('0x12')]);module[_0x1fc9('0x13')]=router;