24d522cf2a50752eff147d70dd066d7e4f81ae44
[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 _0xb9a4=['put','exports','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','get','/:id','isAuthenticated','show','/:id/download','download','post','create'];(function(_0x8353d0,_0x592d3f){var _0x52ee64=function(_0x328b53){while(--_0x328b53){_0x8353d0['push'](_0x8353d0['shift']());}};_0x52ee64(++_0x592d3f);}(_0xb9a4,0xf2));var _0x4b9a=function(_0x1ae59c,_0x7b8339){_0x1ae59c=_0x1ae59c-0x0;var _0x176aae=_0xb9a4[_0x1ae59c];return _0x176aae;};'use strict';var multer=require('multer');var util=require(_0x4b9a('0x0'));var path=require('path');var timeout=require(_0x4b9a('0x1'));var express=require(_0x4b9a('0x2'));var router=express['Router']();var fs_extra=require(_0x4b9a('0x3'));var auth=require(_0x4b9a('0x4'));var interaction=require(_0x4b9a('0x5'));var config=require('../../config/environment');var controller=require('./voiceMailMessage.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x4b9a('0x6')](_0x4b9a('0x7'),auth[_0x4b9a('0x8')](),controller[_0x4b9a('0x9')]);router['get'](_0x4b9a('0xa'),auth[_0x4b9a('0x8')](),controller[_0x4b9a('0xb')]);router[_0x4b9a('0xc')]('/',auth[_0x4b9a('0x8')](),controller[_0x4b9a('0xd')]);router[_0x4b9a('0xe')](_0x4b9a('0x7'),auth[_0x4b9a('0x8')](),controller['update']);router['delete'](_0x4b9a('0x7'),auth[_0x4b9a('0x8')](),controller['destroy']);module[_0x4b9a('0xf')]=router;