Built motion from commit 14588770.|2.5.38
[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 _0xe108=['delete','exports','multer','path','Router','fs-extra','../../components/auth/service','./voiceMailMessage.controller','get','isAuthenticated','/:id','show','post','create','put','update'];(function(_0x4757c5,_0x1a2cc1){var _0x4a8bdb=function(_0x5ba2c1){while(--_0x5ba2c1){_0x4757c5['push'](_0x4757c5['shift']());}};_0x4a8bdb(++_0x1a2cc1);}(_0xe108,0xe2));var _0x8e10=function(_0x334444,_0x20403c){_0x334444=_0x334444-0x0;var _0x303741=_0xe108[_0x334444];return _0x303741;};'use strict';var multer=require(_0x8e10('0x0'));var util=require('util');var path=require(_0x8e10('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8e10('0x2')]();var fs_extra=require(_0x8e10('0x3'));var auth=require(_0x8e10('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x8e10('0x5'));router[_0x8e10('0x6')]('/',auth[_0x8e10('0x7')](),controller['index']);router[_0x8e10('0x6')](_0x8e10('0x8'),auth['isAuthenticated'](),controller[_0x8e10('0x9')]);router[_0x8e10('0x6')]('/:id/download',auth['isAuthenticated'](),controller['download']);router[_0x8e10('0xa')]('/',auth[_0x8e10('0x7')](),controller[_0x8e10('0xb')]);router[_0x8e10('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x8e10('0xd')]);router[_0x8e10('0xe')](_0x8e10('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0x8e10('0xf')]=router;