Built motion from commit eddce310.|2.6.12
[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 _0x719e=['exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','download','post','create','put','update','delete','destroy'];(function(_0x2118ad,_0xe8e3fd){var _0x4b5715=function(_0x399f72){while(--_0x399f72){_0x2118ad['push'](_0x2118ad['shift']());}};_0x4b5715(++_0xe8e3fd);}(_0x719e,0xbf));var _0xe719=function(_0x5c38cd,_0x5a6b4e){_0x5c38cd=_0x5c38cd-0x0;var _0xc985ef=_0x719e[_0x5c38cd];return _0xc985ef;};'use strict';var multer=require(_0xe719('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xe719('0x1'));var express=require(_0xe719('0x2'));var router=express[_0xe719('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xe719('0x4'));var interaction=require(_0xe719('0x5'));var config=require(_0xe719('0x6'));var controller=require('./voiceMailMessage.controller');router['get']('/',auth[_0xe719('0x7')](),controller['index']);router[_0xe719('0x8')](_0xe719('0x9'),auth[_0xe719('0x7')](),controller[_0xe719('0xa')]);router['get']('/:id/download',auth[_0xe719('0x7')](),controller[_0xe719('0xb')]);router[_0xe719('0xc')]('/',auth['isAuthenticated'](),controller[_0xe719('0xd')]);router[_0xe719('0xe')](_0xe719('0x9'),auth[_0xe719('0x7')](),controller[_0xe719('0xf')]);router[_0xe719('0x10')](_0xe719('0x9'),auth[_0xe719('0x7')](),controller[_0xe719('0x11')]);module[_0xe719('0x12')]=router;