d15cfea083a204d83851468f6c9c1a6b9ded44f4
[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 _0x44be=['delete','destroy','exports','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','index','get','/:id','show','isAuthenticated','download','put'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x44be,0x1ac));var _0xe44b=function(_0x3f55de,_0x3ae98f){_0x3f55de=_0x3f55de-0x0;var _0x2698de=_0x44be[_0x3f55de];return _0x2698de;};'use strict';var multer=require('multer');var util=require(_0xe44b('0x0'));var path=require(_0xe44b('0x1'));var timeout=require('connect-timeout');var express=require(_0xe44b('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xe44b('0x3'));var interaction=require(_0xe44b('0x4'));var config=require(_0xe44b('0x5'));var controller=require(_0xe44b('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xe44b('0x7')]);router[_0xe44b('0x8')](_0xe44b('0x9'),auth['isAuthenticated'](),controller[_0xe44b('0xa')]);router['get']('/:id/download',auth[_0xe44b('0xb')](),controller[_0xe44b('0xc')]);router['post']('/',auth[_0xe44b('0xb')](),controller['create']);router[_0xe44b('0xd')](_0xe44b('0x9'),auth[_0xe44b('0xb')](),controller['update']);router[_0xe44b('0xe')](_0xe44b('0x9'),auth[_0xe44b('0xb')](),controller[_0xe44b('0xf')]);module[_0xe44b('0x10')]=router;