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