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