Built motion from commit f7863d46.|2.5.41
[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 _0x98e5=['show','/:id/download','/:id/downloads','downloads','downloadTranscribe','create','post','/:id/transcribe','runTranscribe','put','delete','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/describe','/:id'];(function(_0x19d4ad,_0x2a7c03){var _0x11c5bc=function(_0x43a6df){while(--_0x43a6df){_0x19d4ad['push'](_0x19d4ad['shift']());}};_0x11c5bc(++_0x2a7c03);}(_0x98e5,0x15c));var _0x598e=function(_0x333f97,_0x18c98a){_0x333f97=_0x333f97-0x0;var _0x4ab413=_0x98e5[_0x333f97];return _0x4ab413;};'use strict';var multer=require(_0x598e('0x0'));var util=require(_0x598e('0x1'));var path=require(_0x598e('0x2'));var timeout=require(_0x598e('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x598e('0x4'));var auth=require(_0x598e('0x5'));var interaction=require(_0x598e('0x6'));var config=require('../../config/environment');var controller=require('./voiceRecording.controller');router['get']('/',auth[_0x598e('0x7')](),controller[_0x598e('0x8')]);router[_0x598e('0x9')](_0x598e('0xa'),auth['isAuthenticated'](),controller['describe']);router[_0x598e('0x9')](_0x598e('0xb'),auth['isAuthenticated'](),controller[_0x598e('0xc')]);router[_0x598e('0x9')](_0x598e('0xd'),auth[_0x598e('0x7')](),controller['download']);router[_0x598e('0x9')](_0x598e('0xe'),controller[_0x598e('0xf')]);router['get']('/:id/transcribe',auth[_0x598e('0x7')](),controller[_0x598e('0x10')]);router['post']('/',auth[_0x598e('0x7')](),controller[_0x598e('0x11')]);router[_0x598e('0x12')](_0x598e('0x13'),auth[_0x598e('0x7')](),controller[_0x598e('0x14')]);router[_0x598e('0x15')](_0x598e('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x598e('0x16')]('/:id',auth[_0x598e('0x7')](),controller['destroy']);module[_0x598e('0x17')]=router;