e5c5e66cdf27c8864197be7cd585af3ae40a524b
[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 _0x2c4a=['./voiceMailMessage.controller','get','isAuthenticated','index','show','/:id/download','download','post','create','put','/:id','delete','destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x255d5b,_0x4f6f35){var _0x3e141a=function(_0x249ee2){while(--_0x249ee2){_0x255d5b['push'](_0x255d5b['shift']());}};_0x3e141a(++_0x4f6f35);}(_0x2c4a,0x1c5));var _0xa2c4=function(_0x2545e3,_0x45abaf){_0x2545e3=_0x2545e3-0x0;var _0x5ed7a2=_0x2c4a[_0x2545e3];return _0x5ed7a2;};'use strict';var multer=require(_0xa2c4('0x0'));var util=require(_0xa2c4('0x1'));var path=require(_0xa2c4('0x2'));var timeout=require(_0xa2c4('0x3'));var express=require(_0xa2c4('0x4'));var router=express['Router']();var fs_extra=require(_0xa2c4('0x5'));var auth=require(_0xa2c4('0x6'));var interaction=require(_0xa2c4('0x7'));var config=require(_0xa2c4('0x8'));var controller=require(_0xa2c4('0x9'));router[_0xa2c4('0xa')]('/',auth[_0xa2c4('0xb')](),controller[_0xa2c4('0xc')]);router[_0xa2c4('0xa')]('/:id',auth[_0xa2c4('0xb')](),controller[_0xa2c4('0xd')]);router['get'](_0xa2c4('0xe'),auth[_0xa2c4('0xb')](),controller[_0xa2c4('0xf')]);router[_0xa2c4('0x10')]('/',auth[_0xa2c4('0xb')](),controller[_0xa2c4('0x11')]);router[_0xa2c4('0x12')](_0xa2c4('0x13'),auth['isAuthenticated'](),controller['update']);router[_0xa2c4('0x14')](_0xa2c4('0x13'),auth[_0xa2c4('0xb')](),controller[_0xa2c4('0x15')]);module['exports']=router;