66a9d81c9359601f19c175be6c28022fff5fd853
[motion2.git] / server / api / voiceRecording / 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 _0xd7eb=['/:id','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id/download','download','/:id/transcribe','post','create'];(function(_0x173430,_0x19b763){var _0x2c6b6d=function(_0x5db820){while(--_0x5db820){_0x173430['push'](_0x173430['shift']());}};_0x2c6b6d(++_0x19b763);}(_0xd7eb,0x153));var _0xbd7e=function(_0x556927,_0x34b53f){_0x556927=_0x556927-0x0;var _0x5f1235=_0xd7eb[_0x556927];return _0x5f1235;};'use strict';var multer=require(_0xbd7e('0x0'));var util=require(_0xbd7e('0x1'));var path=require(_0xbd7e('0x2'));var timeout=require(_0xbd7e('0x3'));var express=require(_0xbd7e('0x4'));var router=express['Router']();var auth=require(_0xbd7e('0x5'));var interaction=require(_0xbd7e('0x6'));var config=require('../../config/environment');var controller=require(_0xbd7e('0x7'));router[_0xbd7e('0x8')]('/',auth[_0xbd7e('0x9')](),controller[_0xbd7e('0xa')]);router[_0xbd7e('0x8')](_0xbd7e('0xb'),auth[_0xbd7e('0x9')](),controller[_0xbd7e('0xc')]);router[_0xbd7e('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router['get'](_0xbd7e('0xd'),auth[_0xbd7e('0x9')](),controller[_0xbd7e('0xe')]);router[_0xbd7e('0x8')]('/:id/downloads',controller['downloads']);router[_0xbd7e('0x8')](_0xbd7e('0xf'),auth['isAuthenticated'](),controller['downloadTranscribe']);router[_0xbd7e('0x10')]('/',auth[_0xbd7e('0x9')](),controller[_0xbd7e('0x11')]);router[_0xbd7e('0x10')](_0xbd7e('0xf'),auth['isAuthenticated'](),controller['runTranscribe']);router['put']('/:id',auth[_0xbd7e('0x9')](),controller['update']);router['delete'](_0xbd7e('0x12'),auth['isAuthenticated'](),controller[_0xbd7e('0x13')]);module[_0xbd7e('0x14')]=router;