318fee8b81fbac78ea8c286c5cd135a379be3d8b
[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 _0x343e=['express','Router','../../components/auth/service','../../config/environment','./voiceMail.controller','get','isAuthenticated','show','/:id/messages','getMessages','post','put','/:id','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x343e,0xec));var _0xe343=function(_0x55989,_0x2382dd){_0x55989=_0x55989-0x0;var _0x20eeeb=_0x343e[_0x55989];return _0x20eeeb;};'use strict';var multer=require(_0xe343('0x0'));var util=require(_0xe343('0x1'));var path=require(_0xe343('0x2'));var timeout=require(_0xe343('0x3'));var express=require(_0xe343('0x4'));var router=express[_0xe343('0x5')]();var auth=require(_0xe343('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xe343('0x7'));var controller=require(_0xe343('0x8'));router[_0xe343('0x9')]('/',auth[_0xe343('0xa')](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller[_0xe343('0xb')]);router[_0xe343('0x9')](_0xe343('0xc'),auth[_0xe343('0xa')](),controller[_0xe343('0xd')]);router[_0xe343('0xe')]('/',auth[_0xe343('0xa')](),controller['create']);router[_0xe343('0xf')](_0xe343('0x10'),auth[_0xe343('0xa')](),controller['update']);router[_0xe343('0x11')](_0xe343('0x10'),auth[_0xe343('0xa')](),controller[_0xe343('0x12')]);module[_0xe343('0x13')]=router;