22033f630984181faf6441c2f16f37d62658dcd9
[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 _0x9723=['destroy','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceMailMessage.controller','get','index','/:id','/:id/download','isAuthenticated','download','post','put','update','delete'];(function(_0x41a4ab,_0x16a662){var _0x143681=function(_0x434ef4){while(--_0x434ef4){_0x41a4ab['push'](_0x41a4ab['shift']());}};_0x143681(++_0x16a662);}(_0x9723,0x86));var _0x3972=function(_0xaf025d,_0x586d7a){_0xaf025d=_0xaf025d-0x0;var _0x1c77cb=_0x9723[_0xaf025d];return _0x1c77cb;};'use strict';var multer=require(_0x3972('0x0'));var util=require('util');var path=require(_0x3972('0x1'));var timeout=require(_0x3972('0x2'));var express=require(_0x3972('0x3'));var router=express[_0x3972('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x3972('0x5'));var interaction=require(_0x3972('0x6'));var config=require('../../config/environment');var controller=require(_0x3972('0x7'));router[_0x3972('0x8')]('/',auth['isAuthenticated'](),controller[_0x3972('0x9')]);router['get'](_0x3972('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x3972('0x8')](_0x3972('0xb'),auth[_0x3972('0xc')](),controller[_0x3972('0xd')]);router[_0x3972('0xe')]('/',auth[_0x3972('0xc')](),controller['create']);router[_0x3972('0xf')]('/:id',auth[_0x3972('0xc')](),controller[_0x3972('0x10')]);router[_0x3972('0x11')](_0x3972('0xa'),auth[_0x3972('0xc')](),controller[_0x3972('0x12')]);module['exports']=router;