6a2f42a444ffd720156053a725c03f6c2bd0702f
[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 _0xfb15=['isAuthenticated','get','/:id','getMessages','post','put','update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../config/environment','./voiceMail.controller'];(function(_0x508513,_0x1614ab){var _0x28686f=function(_0x526682){while(--_0x526682){_0x508513['push'](_0x508513['shift']());}};_0x28686f(++_0x1614ab);}(_0xfb15,0x15e));var _0x5fb1=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0xfb15[_0x5b644e];return _0x49c6bf;};'use strict';var multer=require(_0x5fb1('0x0'));var util=require(_0x5fb1('0x1'));var path=require(_0x5fb1('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x5fb1('0x3')]();var auth=require(_0x5fb1('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5fb1('0x5'));var controller=require(_0x5fb1('0x6'));router['get']('/',auth[_0x5fb1('0x7')](),controller['index']);router[_0x5fb1('0x8')](_0x5fb1('0x9'),auth[_0x5fb1('0x7')](),controller['show']);router['get']('/:id/messages',auth[_0x5fb1('0x7')](),controller[_0x5fb1('0xa')]);router[_0x5fb1('0xb')]('/',auth[_0x5fb1('0x7')](),controller['create']);router[_0x5fb1('0xc')](_0x5fb1('0x9'),auth[_0x5fb1('0x7')](),controller[_0x5fb1('0xd')]);router[_0x5fb1('0xe')](_0x5fb1('0x9'),auth[_0x5fb1('0x7')](),controller[_0x5fb1('0xf')]);module[_0x5fb1('0x10')]=router;