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 _0x5e14=['index','/describe','isAuthenticated','describe','show','/:id/download','download','/:id/downloads','downloadTranscribe','runTranscribe','put','/:id','update','destroy','exports','util','path','express','Router','../../config/environment','./voiceRecording.controller','get'];(function(_0x158f01,_0x12af3e){var _0x5ef74e=function(_0x5e7adc){while(--_0x5e7adc){_0x158f01['push'](_0x158f01['shift']());}};_0x5ef74e(++_0x12af3e);}(_0x5e14,0xa9));var _0x45e1=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5e14[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0x45e1('0x0'));var path=require(_0x45e1('0x1'));var timeout=require('connect-timeout');var express=require(_0x45e1('0x2'));var router=express[_0x45e1('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x45e1('0x4'));var controller=require(_0x45e1('0x5'));router[_0x45e1('0x6')]('/',auth['isAuthenticated'](),controller[_0x45e1('0x7')]);router[_0x45e1('0x6')](_0x45e1('0x8'),auth[_0x45e1('0x9')](),controller[_0x45e1('0xa')]);router['get']('/:id',auth[_0x45e1('0x9')](),controller[_0x45e1('0xb')]);router[_0x45e1('0x6')](_0x45e1('0xc'),auth[_0x45e1('0x9')](),controller[_0x45e1('0xd')]);router[_0x45e1('0x6')](_0x45e1('0xe'),controller['downloads']);router[_0x45e1('0x6')]('/:id/transcribe',auth[_0x45e1('0x9')](),controller[_0x45e1('0xf')]);router['post']('/',auth[_0x45e1('0x9')](),controller['create']);router['post']('/:id/transcribe',auth[_0x45e1('0x9')](),controller[_0x45e1('0x10')]);router[_0x45e1('0x11')](_0x45e1('0x12'),auth[_0x45e1('0x9')](),controller[_0x45e1('0x13')]);router['delete']('/:id',auth[_0x45e1('0x9')](),controller[_0x45e1('0x14')]);module[_0x45e1('0x15')]=router;