Built motion from commit (unavailable).|2.5.14
[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 _0x20e2=['connect-timeout','../../components/auth/service','./voiceMail.controller','get','isAuthenticated','getMessages','post','create','put','update','delete','/:id','destroy','multer','util','path'];(function(_0x6abae1,_0x11a02f){var _0x14dad0=function(_0xf1fa3){while(--_0xf1fa3){_0x6abae1['push'](_0x6abae1['shift']());}};_0x14dad0(++_0x11a02f);}(_0x20e2,0x15d));var _0x220e=function(_0x544a35,_0x1361d0){_0x544a35=_0x544a35-0x0;var _0x2d4602=_0x20e2[_0x544a35];return _0x2d4602;};'use strict';var multer=require(_0x220e('0x0'));var util=require(_0x220e('0x1'));var path=require(_0x220e('0x2'));var timeout=require(_0x220e('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x220e('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x220e('0x5'));router[_0x220e('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x220e('0x6')]('/:id',auth[_0x220e('0x7')](),controller['show']);router[_0x220e('0x6')]('/:id/messages',auth[_0x220e('0x7')](),controller[_0x220e('0x8')]);router[_0x220e('0x9')]('/',auth[_0x220e('0x7')](),controller[_0x220e('0xa')]);router[_0x220e('0xb')]('/:id',auth[_0x220e('0x7')](),controller[_0x220e('0xc')]);router[_0x220e('0xd')](_0x220e('0xe'),auth[_0x220e('0x7')](),controller[_0x220e('0xf')]);module['exports']=router;