709ab58bd5e7f994c29b3b9757b6569e91436784
[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 _0x038e=['multer','util','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/download','download','post','create','update','destroy'];(function(_0x280f2c,_0x1f9a17){var _0xb868c=function(_0x44ae59){while(--_0x44ae59){_0x280f2c['push'](_0x280f2c['shift']());}};_0xb868c(++_0x1f9a17);}(_0x038e,0x143));var _0xe038=function(_0x4ec04e,_0x77043a){_0x4ec04e=_0x4ec04e-0x0;var _0x54b680=_0x038e[_0x4ec04e];return _0x54b680;};'use strict';var multer=require(_0xe038('0x0'));var util=require(_0xe038('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xe038('0x2'));var router=express[_0xe038('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xe038('0x4'));var config=require(_0xe038('0x5'));var controller=require('./voiceMailMessage.controller');router['get']('/',auth[_0xe038('0x6')](),controller[_0xe038('0x7')]);router[_0xe038('0x8')](_0xe038('0x9'),auth[_0xe038('0x6')](),controller[_0xe038('0xa')]);router[_0xe038('0x8')](_0xe038('0xb'),auth['isAuthenticated'](),controller[_0xe038('0xc')]);router[_0xe038('0xd')]('/',auth['isAuthenticated'](),controller[_0xe038('0xe')]);router['put'](_0xe038('0x9'),auth[_0xe038('0x6')](),controller[_0xe038('0xf')]);router['delete'](_0xe038('0x9'),auth['isAuthenticated'](),controller[_0xe038('0x10')]);module['exports']=router;