f9eb1e2a64c2b8a70e2adb234329d239c72d965d
[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 _0xb163=['express','../../components/interaction/service','../../config/environment','./voiceMailMessage.controller','get','isAuthenticated','index','show','/:id/download','post','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout'];(function(_0x4b055c,_0x4b870b){var _0x4b62bb=function(_0x4884c2){while(--_0x4884c2){_0x4b055c['push'](_0x4b055c['shift']());}};_0x4b62bb(++_0x4b870b);}(_0xb163,0x6e));var _0x3b16=function(_0x4c301a,_0x430c2c){_0x4c301a=_0x4c301a-0x0;var _0x43ee96=_0xb163[_0x4c301a];return _0x43ee96;};'use strict';var multer=require(_0x3b16('0x0'));var util=require(_0x3b16('0x1'));var path=require(_0x3b16('0x2'));var timeout=require(_0x3b16('0x3'));var express=require(_0x3b16('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x3b16('0x5'));var config=require(_0x3b16('0x6'));var controller=require(_0x3b16('0x7'));router[_0x3b16('0x8')]('/',auth[_0x3b16('0x9')](),controller[_0x3b16('0xa')]);router['get']('/:id',auth[_0x3b16('0x9')](),controller[_0x3b16('0xb')]);router[_0x3b16('0x8')](_0x3b16('0xc'),auth['isAuthenticated'](),controller['download']);router[_0x3b16('0xd')]('/',auth[_0x3b16('0x9')](),controller['create']);router['put'](_0x3b16('0xe'),auth[_0x3b16('0x9')](),controller[_0x3b16('0xf')]);router[_0x3b16('0x10')](_0x3b16('0xe'),auth[_0x3b16('0x9')](),controller[_0x3b16('0x11')]);module[_0x3b16('0x12')]=router;