Built motion from commit 3c2ce842.|2.6.31
[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 _0xbc31=['put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','isAuthenticated','get','/:id','download','post','create'];(function(_0x147d44,_0x1c610){var _0x588aac=function(_0x128e16){while(--_0x128e16){_0x147d44['push'](_0x147d44['shift']());}};_0x588aac(++_0x1c610);}(_0xbc31,0x1bc));var _0x1bc3=function(_0x591440,_0x5d690c){_0x591440=_0x591440-0x0;var _0x4a47c8=_0xbc31[_0x591440];return _0x4a47c8;};'use strict';var multer=require(_0x1bc3('0x0'));var util=require(_0x1bc3('0x1'));var path=require(_0x1bc3('0x2'));var timeout=require(_0x1bc3('0x3'));var express=require(_0x1bc3('0x4'));var router=express[_0x1bc3('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x1bc3('0x6'));var interaction=require(_0x1bc3('0x7'));var config=require(_0x1bc3('0x8'));var controller=require(_0x1bc3('0x9'));router['get']('/',auth[_0x1bc3('0xa')](),controller['index']);router[_0x1bc3('0xb')](_0x1bc3('0xc'),auth[_0x1bc3('0xa')](),controller['show']);router['get']('/:id/download',auth['isAuthenticated'](),controller[_0x1bc3('0xd')]);router[_0x1bc3('0xe')]('/',auth['isAuthenticated'](),controller[_0x1bc3('0xf')]);router[_0x1bc3('0x10')]('/:id',auth[_0x1bc3('0xa')](),controller['update']);router[_0x1bc3('0x11')](_0x1bc3('0xc'),auth[_0x1bc3('0xa')](),controller[_0x1bc3('0x12')]);module[_0x1bc3('0x13')]=router;