Built motion from commit 8271bb6f.|2.6.28
[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 _0xe460=['multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../config/environment','get','/:id','isAuthenticated','show','/:id/download','download','create','update','destroy'];(function(_0x2e6dee,_0x1a61b0){var _0x47706=function(_0x365546){while(--_0x365546){_0x2e6dee['push'](_0x2e6dee['shift']());}};_0x47706(++_0x1a61b0);}(_0xe460,0xd0));var _0x0e46=function(_0x576d8a,_0x2d7bde){_0x576d8a=_0x576d8a-0x0;var _0x3dc3ef=_0xe460[_0x576d8a];return _0x3dc3ef;};'use strict';var multer=require(_0x0e46('0x0'));var util=require(_0x0e46('0x1'));var path=require(_0x0e46('0x2'));var timeout=require(_0x0e46('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x0e46('0x4'));var auth=require(_0x0e46('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x0e46('0x6'));var controller=require('./voiceMailMessage.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x0e46('0x7')](_0x0e46('0x8'),auth[_0x0e46('0x9')](),controller[_0x0e46('0xa')]);router[_0x0e46('0x7')](_0x0e46('0xb'),auth[_0x0e46('0x9')](),controller[_0x0e46('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x0e46('0xd')]);router['put'](_0x0e46('0x8'),auth['isAuthenticated'](),controller[_0x0e46('0xe')]);router['delete'](_0x0e46('0x8'),auth[_0x0e46('0x9')](),controller[_0x0e46('0xf')]);module['exports']=router;