73db9908ab281bc2f50cab3177c2b0e5faa4819b
[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 _0x580f=['./voiceMailMessage.controller','get','index','/:id','show','/:id/download','isAuthenticated','post','create','put','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x23e7c1,_0x35110c){var _0x1add43=function(_0x238918){while(--_0x238918){_0x23e7c1['push'](_0x23e7c1['shift']());}};_0x1add43(++_0x35110c);}(_0x580f,0x91));var _0xf580=function(_0x335403,_0x380b36){_0x335403=_0x335403-0x0;var _0x367690=_0x580f[_0x335403];return _0x367690;};'use strict';var multer=require(_0xf580('0x0'));var util=require(_0xf580('0x1'));var path=require(_0xf580('0x2'));var timeout=require('connect-timeout');var express=require(_0xf580('0x3'));var router=express['Router']();var fs_extra=require(_0xf580('0x4'));var auth=require(_0xf580('0x5'));var interaction=require(_0xf580('0x6'));var config=require('../../config/environment');var controller=require(_0xf580('0x7'));router[_0xf580('0x8')]('/',auth['isAuthenticated'](),controller[_0xf580('0x9')]);router['get'](_0xf580('0xa'),auth['isAuthenticated'](),controller[_0xf580('0xb')]);router['get'](_0xf580('0xc'),auth[_0xf580('0xd')](),controller['download']);router[_0xf580('0xe')]('/',auth[_0xf580('0xd')](),controller[_0xf580('0xf')]);router[_0xf580('0x10')](_0xf580('0xa'),auth[_0xf580('0xd')](),controller['update']);router['delete'](_0xf580('0xa'),auth[_0xf580('0xd')](),controller[_0xf580('0x11')]);module[_0xf580('0x12')]=router;