e7863cb1a20bce1bf4565c62f49ff9a4afc98531
[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 _0x3665=['index','/:id','show','/:id/download','download','post','put','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','get','isAuthenticated'];(function(_0x38f038,_0xf17227){var _0x166c47=function(_0x422af6){while(--_0x422af6){_0x38f038['push'](_0x38f038['shift']());}};_0x166c47(++_0xf17227);}(_0x3665,0x98));var _0x5366=function(_0x552645,_0x10b3b0){_0x552645=_0x552645-0x0;var _0x279010=_0x3665[_0x552645];return _0x279010;};'use strict';var multer=require(_0x5366('0x0'));var util=require(_0x5366('0x1'));var path=require(_0x5366('0x2'));var timeout=require('connect-timeout');var express=require(_0x5366('0x3'));var router=express[_0x5366('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x5366('0x5'));var config=require(_0x5366('0x6'));var controller=require(_0x5366('0x7'));router[_0x5366('0x8')]('/',auth[_0x5366('0x9')](),controller[_0x5366('0xa')]);router[_0x5366('0x8')](_0x5366('0xb'),auth[_0x5366('0x9')](),controller[_0x5366('0xc')]);router[_0x5366('0x8')](_0x5366('0xd'),auth[_0x5366('0x9')](),controller[_0x5366('0xe')]);router[_0x5366('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0x5366('0x10')](_0x5366('0xb'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x5366('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0x5366('0x11')]=router;