Built motion from commit (unavailable).|2.5.14
[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 _0x9e2f=['post','create','put','/:id','update','delete','destroy','exports','multer','path','express','Router','../../config/environment','./voiceMail.controller','get','show','isAuthenticated','getMessages'];(function(_0x29d915,_0x54a040){var _0x160f86=function(_0x237dfa){while(--_0x237dfa){_0x29d915['push'](_0x29d915['shift']());}};_0x160f86(++_0x54a040);}(_0x9e2f,0x170));var _0xf9e2=function(_0x1cff33,_0x32fb7b){_0x1cff33=_0x1cff33-0x0;var _0xf0becd=_0x9e2f[_0x1cff33];return _0xf0becd;};'use strict';var multer=require(_0xf9e2('0x0'));var util=require('util');var path=require(_0xf9e2('0x1'));var timeout=require('connect-timeout');var express=require(_0xf9e2('0x2'));var router=express[_0xf9e2('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xf9e2('0x4'));var controller=require(_0xf9e2('0x5'));router[_0xf9e2('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0xf9e2('0x6')]('/:id',auth['isAuthenticated'](),controller[_0xf9e2('0x7')]);router[_0xf9e2('0x6')]('/:id/messages',auth[_0xf9e2('0x8')](),controller[_0xf9e2('0x9')]);router[_0xf9e2('0xa')]('/',auth[_0xf9e2('0x8')](),controller[_0xf9e2('0xb')]);router[_0xf9e2('0xc')](_0xf9e2('0xd'),auth[_0xf9e2('0x8')](),controller[_0xf9e2('0xe')]);router[_0xf9e2('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xf9e2('0x10')]);module[_0xf9e2('0x11')]=router;