071419a0fda1d8d5545b7477ecef9c8a0c52c307
[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 _0x27f1=['fs-extra','../../components/auth/service','../../config/environment','./voiceMailMessage.controller','get','isAuthenticated','index','show','download','post','put','/:id','update','destroy','exports','multer','util','connect-timeout','express','Router'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x27f1,0x19f));var _0x127f=function(_0x2dc7c9,_0x3a15f8){_0x2dc7c9=_0x2dc7c9-0x0;var _0x3e6536=_0x27f1[_0x2dc7c9];return _0x3e6536;};'use strict';var multer=require(_0x127f('0x0'));var util=require(_0x127f('0x1'));var path=require('path');var timeout=require(_0x127f('0x2'));var express=require(_0x127f('0x3'));var router=express[_0x127f('0x4')]();var fs_extra=require(_0x127f('0x5'));var auth=require(_0x127f('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x127f('0x7'));var controller=require(_0x127f('0x8'));router[_0x127f('0x9')]('/',auth[_0x127f('0xa')](),controller[_0x127f('0xb')]);router[_0x127f('0x9')]('/:id',auth[_0x127f('0xa')](),controller[_0x127f('0xc')]);router[_0x127f('0x9')]('/:id/download',auth[_0x127f('0xa')](),controller[_0x127f('0xd')]);router[_0x127f('0xe')]('/',auth[_0x127f('0xa')](),controller['create']);router[_0x127f('0xf')](_0x127f('0x10'),auth[_0x127f('0xa')](),controller[_0x127f('0x11')]);router['delete'](_0x127f('0x10'),auth['isAuthenticated'](),controller[_0x127f('0x12')]);module[_0x127f('0x13')]=router;