Built motion from commit 497d3d92.|2.5.43
[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 _0x1dfb=['/:id/transcribe','post','runTranscribe','put','update','delete','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/downloads','downloads'];(function(_0x1b828b,_0x344400){var _0x98da1a=function(_0x1a0f5b){while(--_0x1a0f5b){_0x1b828b['push'](_0x1b828b['shift']());}};_0x98da1a(++_0x344400);}(_0x1dfb,0x13b));var _0xb1df=function(_0x120d71,_0x34672e){_0x120d71=_0x120d71-0x0;var _0x17a7e1=_0x1dfb[_0x120d71];return _0x17a7e1;};'use strict';var multer=require(_0xb1df('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb1df('0x1'));var express=require(_0xb1df('0x2'));var router=express[_0xb1df('0x3')]();var fs_extra=require(_0xb1df('0x4'));var auth=require(_0xb1df('0x5'));var interaction=require(_0xb1df('0x6'));var config=require(_0xb1df('0x7'));var controller=require('./voiceRecording.controller');router[_0xb1df('0x8')]('/',auth[_0xb1df('0x9')](),controller[_0xb1df('0xa')]);router[_0xb1df('0x8')]('/describe',auth[_0xb1df('0x9')](),controller['describe']);router[_0xb1df('0x8')](_0xb1df('0xb'),auth[_0xb1df('0x9')](),controller[_0xb1df('0xc')]);router[_0xb1df('0x8')]('/:id/download',auth[_0xb1df('0x9')](),controller['download']);router[_0xb1df('0x8')](_0xb1df('0xd'),controller[_0xb1df('0xe')]);router['get'](_0xb1df('0xf'),auth['isAuthenticated'](),controller['downloadTranscribe']);router[_0xb1df('0x10')]('/',auth[_0xb1df('0x9')](),controller['create']);router['post']('/:id/transcribe',auth[_0xb1df('0x9')](),controller[_0xb1df('0x11')]);router[_0xb1df('0x12')]('/:id',auth[_0xb1df('0x9')](),controller[_0xb1df('0x13')]);router[_0xb1df('0x14')](_0xb1df('0xb'),auth[_0xb1df('0x9')](),controller['destroy']);module[_0xb1df('0x15')]=router;