Built motion from commit (unavailable).|2.5.16
[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 _0x67e4=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMail.controller','get','isAuthenticated','show','getMessages','post','create','put','update','destroy','exports','multer'];(function(_0x1fc8c5,_0x2968fa){var _0x1024e0=function(_0x3f8d91){while(--_0x3f8d91){_0x1fc8c5['push'](_0x1fc8c5['shift']());}};_0x1024e0(++_0x2968fa);}(_0x67e4,0x12b));var _0x467e=function(_0x2642cb,_0x4b917f){_0x2642cb=_0x2642cb-0x0;var _0xe6e41=_0x67e4[_0x2642cb];return _0xe6e41;};'use strict';var multer=require(_0x467e('0x0'));var util=require(_0x467e('0x1'));var path=require(_0x467e('0x2'));var timeout=require(_0x467e('0x3'));var express=require(_0x467e('0x4'));var router=express[_0x467e('0x5')]();var auth=require(_0x467e('0x6'));var interaction=require(_0x467e('0x7'));var config=require(_0x467e('0x8'));var controller=require(_0x467e('0x9'));router[_0x467e('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0x467e('0xa')]('/:id',auth[_0x467e('0xb')](),controller[_0x467e('0xc')]);router[_0x467e('0xa')]('/:id/messages',auth[_0x467e('0xb')](),controller[_0x467e('0xd')]);router[_0x467e('0xe')]('/',auth[_0x467e('0xb')](),controller[_0x467e('0xf')]);router[_0x467e('0x10')]('/:id',auth[_0x467e('0xb')](),controller[_0x467e('0x11')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x467e('0x12')]);module[_0x467e('0x13')]=router;