1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x79a4=['Router','fs-extra','../../config/environment','get','/describe','isAuthenticated','/:id','show','/:id/download','/:id/transcribe','create','runTranscribe','delete','destroy','exports','util','connect-timeout'];(function(_0x363af0,_0x32d136){var _0x257614=function(_0x4a1ebd){while(--_0x4a1ebd){_0x363af0['push'](_0x363af0['shift']());}};_0x257614(++_0x32d136);}(_0x79a4,0x10e));var _0x479a=function(_0x49bd91,_0x1f70b4){_0x49bd91=_0x49bd91-0x0;var _0x488a88=_0x79a4[_0x49bd91];return _0x488a88;};'use strict';var multer=require('multer');var util=require(_0x479a('0x0'));var path=require('path');var timeout=require(_0x479a('0x1'));var express=require('express');var router=express[_0x479a('0x2')]();var fs_extra=require(_0x479a('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x479a('0x4'));var controller=require('./voiceRecording.controller');router[_0x479a('0x5')]('/',auth['isAuthenticated'](),controller['index']);router[_0x479a('0x5')](_0x479a('0x6'),auth[_0x479a('0x7')](),controller['describe']);router[_0x479a('0x5')](_0x479a('0x8'),auth[_0x479a('0x7')](),controller[_0x479a('0x9')]);router[_0x479a('0x5')](_0x479a('0xa'),auth['isAuthenticated'](),controller['download']);router[_0x479a('0x5')]('/:id/downloads',controller['downloads']);router[_0x479a('0x5')](_0x479a('0xb'),auth['isAuthenticated'](),controller['downloadTranscribe']);router['post']('/',auth[_0x479a('0x7')](),controller[_0x479a('0xc')]);router['post'](_0x479a('0xb'),auth[_0x479a('0x7')](),controller[_0x479a('0xd')]);router['put'](_0x479a('0x8'),auth[_0x479a('0x7')](),controller['update']);router[_0x479a('0xe')](_0x479a('0x8'),auth[_0x479a('0x7')](),controller[_0x479a('0xf')]);module[_0x479a('0x10')]=router;