Built motion from commit 092f8824.|2.5.49
[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 _0x0129=['/:id/transcribe','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','index','/describe','isAuthenticated','/:id','show','/:id/download','download','/:id/downloads','downloads','downloadTranscribe','create','post'];(function(_0xce3a1f,_0x4311e0){var _0x14d72f=function(_0x146981){while(--_0x146981){_0xce3a1f['push'](_0xce3a1f['shift']());}};_0x14d72f(++_0x4311e0);}(_0x0129,0x144));var _0x9012=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x0129[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x9012('0x0'));var util=require(_0x9012('0x1'));var path=require(_0x9012('0x2'));var timeout=require(_0x9012('0x3'));var express=require(_0x9012('0x4'));var router=express[_0x9012('0x5')]();var fs_extra=require(_0x9012('0x6'));var auth=require(_0x9012('0x7'));var interaction=require(_0x9012('0x8'));var config=require(_0x9012('0x9'));var controller=require(_0x9012('0xa'));router[_0x9012('0xb')]('/',auth['isAuthenticated'](),controller[_0x9012('0xc')]);router[_0x9012('0xb')](_0x9012('0xd'),auth[_0x9012('0xe')](),controller['describe']);router[_0x9012('0xb')](_0x9012('0xf'),auth[_0x9012('0xe')](),controller[_0x9012('0x10')]);router['get'](_0x9012('0x11'),auth['isAuthenticated'](),controller[_0x9012('0x12')]);router[_0x9012('0xb')](_0x9012('0x13'),controller[_0x9012('0x14')]);router[_0x9012('0xb')]('/:id/transcribe',auth['isAuthenticated'](),controller[_0x9012('0x15')]);router['post']('/',auth[_0x9012('0xe')](),controller[_0x9012('0x16')]);router[_0x9012('0x17')](_0x9012('0x18'),auth[_0x9012('0xe')](),controller['runTranscribe']);router['put']('/:id',auth['isAuthenticated'](),controller[_0x9012('0x19')]);router[_0x9012('0x1a')]('/:id',auth['isAuthenticated'](),controller[_0x9012('0x1b')]);module[_0x9012('0x1c')]=router;