Built motion from commit ce97982f.|2.6.29
[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 _0x75ed=['show','post','create','update','destroy','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceMailMessage.controller','get','isAuthenticated','/:id'];(function(_0x30df5a,_0x4af839){var _0x28127c=function(_0x27d13a){while(--_0x27d13a){_0x30df5a['push'](_0x30df5a['shift']());}};_0x28127c(++_0x4af839);}(_0x75ed,0x176));var _0xd75e=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x75ed[_0x19e35c];return _0x3e1fe8;};'use strict';var multer=require('multer');var util=require(_0xd75e('0x0'));var path=require('path');var timeout=require(_0xd75e('0x1'));var express=require(_0xd75e('0x2'));var router=express[_0xd75e('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xd75e('0x4'));var interaction=require(_0xd75e('0x5'));var config=require('../../config/environment');var controller=require(_0xd75e('0x6'));router[_0xd75e('0x7')]('/',auth[_0xd75e('0x8')](),controller['index']);router['get'](_0xd75e('0x9'),auth[_0xd75e('0x8')](),controller[_0xd75e('0xa')]);router['get']('/:id/download',auth[_0xd75e('0x8')](),controller['download']);router[_0xd75e('0xb')]('/',auth[_0xd75e('0x8')](),controller[_0xd75e('0xc')]);router['put'](_0xd75e('0x9'),auth[_0xd75e('0x8')](),controller[_0xd75e('0xd')]);router['delete']('/:id',auth[_0xd75e('0x8')](),controller[_0xd75e('0xe')]);module[_0xd75e('0xf')]=router;