Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / voiceMailMessage / 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 _0xcc60=['download','post','create','put','/:id','update','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','isAuthenticated','index','get','show','/:id/download'];(function(_0x8fa072,_0x4d9ca6){var _0x1b5f89=function(_0x23c013){while(--_0x23c013){_0x8fa072['push'](_0x8fa072['shift']());}};_0x1b5f89(++_0x4d9ca6);}(_0xcc60,0x1a8));var _0x0cc6=function(_0x14e18e,_0x1cc1fb){_0x14e18e=_0x14e18e-0x0;var _0x3871ad=_0xcc60[_0x14e18e];return _0x3871ad;};'use strict';var multer=require(_0x0cc6('0x0'));var util=require(_0x0cc6('0x1'));var path=require('path');var timeout=require(_0x0cc6('0x2'));var express=require(_0x0cc6('0x3'));var router=express[_0x0cc6('0x4')]();var fs_extra=require(_0x0cc6('0x5'));var auth=require(_0x0cc6('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x0cc6('0x7'));var controller=require('./voiceMailMessage.controller');router['get']('/',auth[_0x0cc6('0x8')](),controller[_0x0cc6('0x9')]);router[_0x0cc6('0xa')]('/:id',auth[_0x0cc6('0x8')](),controller[_0x0cc6('0xb')]);router[_0x0cc6('0xa')](_0x0cc6('0xc'),auth[_0x0cc6('0x8')](),controller[_0x0cc6('0xd')]);router[_0x0cc6('0xe')]('/',auth[_0x0cc6('0x8')](),controller[_0x0cc6('0xf')]);router[_0x0cc6('0x10')](_0x0cc6('0x11'),auth['isAuthenticated'](),controller[_0x0cc6('0x12')]);router['delete'](_0x0cc6('0x11'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;