bd42d625bffe69c3a95807e6713b4080e70d8789
[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 _0x8d0c=['Router','fs-extra','../../components/interaction/service','../../config/environment','index','isAuthenticated','describe','get','/:id','/:id/download','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','delete','destroy','exports','util','path','connect-timeout','express'];(function(_0x1b4c04,_0x8d961d){var _0x374f5d=function(_0x11dc31){while(--_0x11dc31){_0x1b4c04['push'](_0x1b4c04['shift']());}};_0x374f5d(++_0x8d961d);}(_0x8d0c,0x1df));var _0xc8d0=function(_0x8d0d40,_0x1c0928){_0x8d0d40=_0x8d0d40-0x0;var _0x90f0da=_0x8d0c[_0x8d0d40];return _0x90f0da;};'use strict';var multer=require('multer');var util=require(_0xc8d0('0x0'));var path=require(_0xc8d0('0x1'));var timeout=require(_0xc8d0('0x2'));var express=require(_0xc8d0('0x3'));var router=express[_0xc8d0('0x4')]();var fs_extra=require(_0xc8d0('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xc8d0('0x6'));var config=require(_0xc8d0('0x7'));var controller=require('./voiceRecording.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xc8d0('0x8')]);router['get']('/describe',auth[_0xc8d0('0x9')](),controller[_0xc8d0('0xa')]);router[_0xc8d0('0xb')](_0xc8d0('0xc'),auth[_0xc8d0('0x9')](),controller['show']);router[_0xc8d0('0xb')](_0xc8d0('0xd'),auth[_0xc8d0('0x9')](),controller[_0xc8d0('0xe')]);router[_0xc8d0('0xb')](_0xc8d0('0xf'),controller[_0xc8d0('0x10')]);router[_0xc8d0('0xb')](_0xc8d0('0x11'),auth[_0xc8d0('0x9')](),controller[_0xc8d0('0x12')]);router[_0xc8d0('0x13')]('/',auth[_0xc8d0('0x9')](),controller['create']);router[_0xc8d0('0x13')](_0xc8d0('0x11'),auth[_0xc8d0('0x9')](),controller['runTranscribe']);router['put'](_0xc8d0('0xc'),auth[_0xc8d0('0x9')](),controller['update']);router[_0xc8d0('0x14')]('/:id',auth[_0xc8d0('0x9')](),controller[_0xc8d0('0x15')]);module[_0xc8d0('0x16')]=router;