Built motion from commit (unavailable).|2.2.0
[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 _0xd423=['delete','destroy','exports','multer','util','path','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','getMessages','post','create','update'];(function(_0x5cb9ce,_0x2fb052){var _0x5a04dc=function(_0x386590){while(--_0x386590){_0x5cb9ce['push'](_0x5cb9ce['shift']());}};_0x5a04dc(++_0x2fb052);}(_0xd423,0x146));var _0x3d42=function(_0x13d857,_0x51659d){_0x13d857=_0x13d857-0x0;var _0x2d9d98=_0xd423[_0x13d857];return _0x2d9d98;};'use strict';var multer=require(_0x3d42('0x0'));var util=require(_0x3d42('0x1'));var path=require(_0x3d42('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x3d42('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x3d42('0x4'));var controller=require('./voiceMail.controller');router[_0x3d42('0x5')]('/',auth[_0x3d42('0x6')](),controller[_0x3d42('0x7')]);router[_0x3d42('0x5')](_0x3d42('0x8'),auth[_0x3d42('0x6')](),controller[_0x3d42('0x9')]);router[_0x3d42('0x5')]('/:id/messages',auth[_0x3d42('0x6')](),controller[_0x3d42('0xa')]);router[_0x3d42('0xb')]('/',auth[_0x3d42('0x6')](),controller[_0x3d42('0xc')]);router['put'](_0x3d42('0x8'),auth[_0x3d42('0x6')](),controller[_0x3d42('0xd')]);router[_0x3d42('0xe')](_0x3d42('0x8'),auth['isAuthenticated'](),controller[_0x3d42('0xf')]);module[_0x3d42('0x10')]=router;