Built motion from commit a61a4a20.|2.5.46
[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 _0x1f57=['isAuthenticated','index','/:id','show','download','post','create','put','update','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceMailMessage.controller','get'];(function(_0x150be8,_0x11d437){var _0x29fdd0=function(_0x506787){while(--_0x506787){_0x150be8['push'](_0x150be8['shift']());}};_0x29fdd0(++_0x11d437);}(_0x1f57,0x89));var _0x71f5=function(_0x10e897,_0x15bc4d){_0x10e897=_0x10e897-0x0;var _0x2e8759=_0x1f57[_0x10e897];return _0x2e8759;};'use strict';var multer=require(_0x71f5('0x0'));var util=require(_0x71f5('0x1'));var path=require(_0x71f5('0x2'));var timeout=require(_0x71f5('0x3'));var express=require('express');var router=express[_0x71f5('0x4')]();var fs_extra=require(_0x71f5('0x5'));var auth=require(_0x71f5('0x6'));var interaction=require(_0x71f5('0x7'));var config=require('../../config/environment');var controller=require(_0x71f5('0x8'));router[_0x71f5('0x9')]('/',auth[_0x71f5('0xa')](),controller[_0x71f5('0xb')]);router['get'](_0x71f5('0xc'),auth[_0x71f5('0xa')](),controller[_0x71f5('0xd')]);router['get']('/:id/download',auth[_0x71f5('0xa')](),controller[_0x71f5('0xe')]);router[_0x71f5('0xf')]('/',auth[_0x71f5('0xa')](),controller[_0x71f5('0x10')]);router[_0x71f5('0x11')]('/:id',auth[_0x71f5('0xa')](),controller[_0x71f5('0x12')]);router['delete']('/:id',auth[_0x71f5('0xa')](),controller[_0x71f5('0x13')]);module[_0x71f5('0x14')]=router;