Built motion from commit (unavailable).|2.4.20
[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 _0xa894=['exports','multer','util','connect-timeout','express','../../components/auth/service','../../config/environment','./voiceMail.controller','isAuthenticated','index','/:id/messages','post','put','/:id','destroy'];(function(_0xef0f93,_0x2f1ca7){var _0x593466=function(_0x1873a5){while(--_0x1873a5){_0xef0f93['push'](_0xef0f93['shift']());}};_0x593466(++_0x2f1ca7);}(_0xa894,0xb5));var _0x4a89=function(_0x3b7fb7,_0x30abbb){_0x3b7fb7=_0x3b7fb7-0x0;var _0x34da82=_0xa894[_0x3b7fb7];return _0x34da82;};'use strict';var multer=require(_0x4a89('0x0'));var util=require(_0x4a89('0x1'));var path=require('path');var timeout=require(_0x4a89('0x2'));var express=require(_0x4a89('0x3'));var router=express['Router']();var auth=require(_0x4a89('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x4a89('0x5'));var controller=require(_0x4a89('0x6'));router['get']('/',auth[_0x4a89('0x7')](),controller[_0x4a89('0x8')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router['get'](_0x4a89('0x9'),auth[_0x4a89('0x7')](),controller['getMessages']);router[_0x4a89('0xa')]('/',auth[_0x4a89('0x7')](),controller['create']);router[_0x4a89('0xb')](_0x4a89('0xc'),auth[_0x4a89('0x7')](),controller['update']);router['delete']('/:id',auth[_0x4a89('0x7')](),controller[_0x4a89('0xd')]);module[_0x4a89('0xe')]=router;