5b2dfba5b70395452f461b94d64126d297a787ec
[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 _0xd235=['../../components/interaction/service','../../config/environment','./voiceMail.controller','get','index','isAuthenticated','/:id/messages','getMessages','post','create','put','/:id','update','delete','destroy','exports','path','Router','../../components/auth/service'];(function(_0x123a99,_0x5f0db9){var _0x3ba390=function(_0x148f3f){while(--_0x148f3f){_0x123a99['push'](_0x123a99['shift']());}};_0x3ba390(++_0x5f0db9);}(_0xd235,0x179));var _0x5d23=function(_0xcf8b0c,_0xeedcc5){_0xcf8b0c=_0xcf8b0c-0x0;var _0x8dad63=_0xd235[_0xcf8b0c];return _0x8dad63;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5d23('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x5d23('0x1')]();var auth=require(_0x5d23('0x2'));var interaction=require(_0x5d23('0x3'));var config=require(_0x5d23('0x4'));var controller=require(_0x5d23('0x5'));router[_0x5d23('0x6')]('/',auth['isAuthenticated'](),controller[_0x5d23('0x7')]);router[_0x5d23('0x6')]('/:id',auth[_0x5d23('0x8')](),controller['show']);router['get'](_0x5d23('0x9'),auth['isAuthenticated'](),controller[_0x5d23('0xa')]);router[_0x5d23('0xb')]('/',auth[_0x5d23('0x8')](),controller[_0x5d23('0xc')]);router[_0x5d23('0xd')](_0x5d23('0xe'),auth[_0x5d23('0x8')](),controller[_0x5d23('0xf')]);router[_0x5d23('0x10')](_0x5d23('0xe'),auth[_0x5d23('0x8')](),controller[_0x5d23('0x11')]);module[_0x5d23('0x12')]=router;