Built motion from commit (unavailable).|2.5.26
[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 _0x578c=['update','destroy','multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceMail.controller','get','isAuthenticated','index','/:id','show','/:id/messages','getMessages','create'];(function(_0x194035,_0x2ac741){var _0x1eb086=function(_0x3e5858){while(--_0x3e5858){_0x194035['push'](_0x194035['shift']());}};_0x1eb086(++_0x2ac741);}(_0x578c,0x158));var _0xc578=function(_0x5d390b,_0x218d9a){_0x5d390b=_0x5d390b-0x0;var _0x2efa7f=_0x578c[_0x5d390b];return _0x2efa7f;};'use strict';var multer=require(_0xc578('0x0'));var util=require(_0xc578('0x1'));var path=require(_0xc578('0x2'));var timeout=require('connect-timeout');var express=require(_0xc578('0x3'));var router=express[_0xc578('0x4')]();var fs_extra=require(_0xc578('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xc578('0x6'));var config=require(_0xc578('0x7'));var controller=require(_0xc578('0x8'));router[_0xc578('0x9')]('/',auth[_0xc578('0xa')](),controller[_0xc578('0xb')]);router[_0xc578('0x9')](_0xc578('0xc'),auth[_0xc578('0xa')](),controller[_0xc578('0xd')]);router[_0xc578('0x9')](_0xc578('0xe'),auth[_0xc578('0xa')](),controller[_0xc578('0xf')]);router['post']('/',auth['isAuthenticated'](),controller[_0xc578('0x10')]);router['put'](_0xc578('0xc'),auth[_0xc578('0xa')](),controller[_0xc578('0x11')]);router['delete'](_0xc578('0xc'),auth[_0xc578('0xa')](),controller[_0xc578('0x12')]);module['exports']=router;