Built motion from commit (unavailable).|2.5.8
[motion2.git] / server / api / voiceMail / 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 _0xc2bd=['delete','destroy','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMail.controller','get','isAuthenticated','index','getMessages','post','/:id','update'];(function(_0xc4dc20,_0x5b4a54){var _0x19affa=function(_0xc08969){while(--_0xc08969){_0xc4dc20['push'](_0xc4dc20['shift']());}};_0x19affa(++_0x5b4a54);}(_0xc2bd,0x179));var _0xdc2b=function(_0x23c138,_0xbe763e){_0x23c138=_0x23c138-0x0;var _0x5223d6=_0xc2bd[_0x23c138];return _0x5223d6;};'use strict';var multer=require(_0xdc2b('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xdc2b('0x1'));var express=require('express');var router=express[_0xdc2b('0x2')]();var auth=require(_0xdc2b('0x3'));var interaction=require(_0xdc2b('0x4'));var config=require(_0xdc2b('0x5'));var controller=require(_0xdc2b('0x6'));router[_0xdc2b('0x7')]('/',auth[_0xdc2b('0x8')](),controller[_0xdc2b('0x9')]);router[_0xdc2b('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router['get']('/:id/messages',auth[_0xdc2b('0x8')](),controller[_0xdc2b('0xa')]);router[_0xdc2b('0xb')]('/',auth[_0xdc2b('0x8')](),controller['create']);router['put'](_0xdc2b('0xc'),auth[_0xdc2b('0x8')](),controller[_0xdc2b('0xd')]);router[_0xdc2b('0xe')](_0xdc2b('0xc'),auth['isAuthenticated'](),controller[_0xdc2b('0xf')]);module[_0xdc2b('0x10')]=router;