c78a1ac81363e1578367108705efe629f45e4299
[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 _0x5ab6=['/:id/messages','getMessages','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id'];(function(_0xc23492,_0x1e9d94){var _0x5638ce=function(_0x445323){while(--_0x445323){_0xc23492['push'](_0xc23492['shift']());}};_0x5638ce(++_0x1e9d94);}(_0x5ab6,0x1d7));var _0x65ab=function(_0x287a1f,_0x31daf6){_0x287a1f=_0x287a1f-0x0;var _0xe1e990=_0x5ab6[_0x287a1f];return _0xe1e990;};'use strict';var multer=require(_0x65ab('0x0'));var util=require(_0x65ab('0x1'));var path=require(_0x65ab('0x2'));var timeout=require(_0x65ab('0x3'));var express=require(_0x65ab('0x4'));var router=express[_0x65ab('0x5')]();var auth=require(_0x65ab('0x6'));var interaction=require(_0x65ab('0x7'));var config=require('../../config/environment');var controller=require('./voiceMail.controller');router[_0x65ab('0x8')]('/',auth[_0x65ab('0x9')](),controller[_0x65ab('0xa')]);router[_0x65ab('0x8')](_0x65ab('0xb'),auth[_0x65ab('0x9')](),controller['show']);router[_0x65ab('0x8')](_0x65ab('0xc'),auth[_0x65ab('0x9')](),controller[_0x65ab('0xd')]);router[_0x65ab('0xe')]('/',auth[_0x65ab('0x9')](),controller[_0x65ab('0xf')]);router[_0x65ab('0x10')]('/:id',auth[_0x65ab('0x9')](),controller[_0x65ab('0x11')]);router[_0x65ab('0x12')](_0x65ab('0xb'),auth[_0x65ab('0x9')](),controller[_0x65ab('0x13')]);module[_0x65ab('0x14')]=router;