Built motion from commit (unavailable).|2.5.8
[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 _0xe7a3=['Router','../../components/auth/service','../../components/interaction/service','./voiceRecording.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/download','downloadTranscribe','post','create','runTranscribe','put','delete','destroy','multer','path','connect-timeout','express'];(function(_0x555480,_0x320fdf){var _0x1f4390=function(_0x27604a){while(--_0x27604a){_0x555480['push'](_0x555480['shift']());}};_0x1f4390(++_0x320fdf);}(_0xe7a3,0x6a));var _0x3e7a=function(_0x3eedf6,_0x243a6a){_0x3eedf6=_0x3eedf6-0x0;var _0x28f7bb=_0xe7a3[_0x3eedf6];return _0x28f7bb;};'use strict';var multer=require(_0x3e7a('0x0'));var util=require('util');var path=require(_0x3e7a('0x1'));var timeout=require(_0x3e7a('0x2'));var express=require(_0x3e7a('0x3'));var router=express[_0x3e7a('0x4')]();var auth=require(_0x3e7a('0x5'));var interaction=require(_0x3e7a('0x6'));var config=require('../../config/environment');var controller=require(_0x3e7a('0x7'));router[_0x3e7a('0x8')]('/',auth[_0x3e7a('0x9')](),controller['index']);router[_0x3e7a('0x8')](_0x3e7a('0xa'),auth[_0x3e7a('0x9')](),controller[_0x3e7a('0xb')]);router['get'](_0x3e7a('0xc'),auth[_0x3e7a('0x9')](),controller[_0x3e7a('0xd')]);router['get'](_0x3e7a('0xe'),auth[_0x3e7a('0x9')](),controller['download']);router[_0x3e7a('0x8')]('/:id/downloads',controller['downloads']);router['get']('/:id/transcribe',auth[_0x3e7a('0x9')](),controller[_0x3e7a('0xf')]);router[_0x3e7a('0x10')]('/',auth[_0x3e7a('0x9')](),controller[_0x3e7a('0x11')]);router[_0x3e7a('0x10')]('/:id/transcribe',auth[_0x3e7a('0x9')](),controller[_0x3e7a('0x12')]);router[_0x3e7a('0x13')](_0x3e7a('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x3e7a('0x14')](_0x3e7a('0xc'),auth['isAuthenticated'](),controller[_0x3e7a('0x15')]);module['exports']=router;