Built motion from commit 9efc8423.|2.6.31
[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 _0x725b=['exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./voiceMailMessage.controller','get','isAuthenticated','index','/:id','show','download','create','put','delete'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x725b,0x1ef));var _0xb725=function(_0x842f30,_0x5a3981){_0x842f30=_0x842f30-0x0;var _0x24caa8=_0x725b[_0x842f30];return _0x24caa8;};'use strict';var multer=require('multer');var util=require(_0xb725('0x0'));var path=require(_0xb725('0x1'));var timeout=require(_0xb725('0x2'));var express=require(_0xb725('0x3'));var router=express[_0xb725('0x4')]();var fs_extra=require(_0xb725('0x5'));var auth=require(_0xb725('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb725('0x7'));var controller=require(_0xb725('0x8'));router[_0xb725('0x9')]('/',auth[_0xb725('0xa')](),controller[_0xb725('0xb')]);router[_0xb725('0x9')](_0xb725('0xc'),auth[_0xb725('0xa')](),controller[_0xb725('0xd')]);router['get']('/:id/download',auth['isAuthenticated'](),controller[_0xb725('0xe')]);router['post']('/',auth[_0xb725('0xa')](),controller[_0xb725('0xf')]);router[_0xb725('0x10')](_0xb725('0xc'),auth[_0xb725('0xa')](),controller['update']);router[_0xb725('0x11')](_0xb725('0xc'),auth[_0xb725('0xa')](),controller['destroy']);module[_0xb725('0x12')]=router;