a862b1a91cd31cd273991201eb4b93a5d91330a9
[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 _0x62fe=['../../config/environment','get','isAuthenticated','index','/describe','/:id','/:id/download','download','downloads','/:id/transcribe','post','create','runTranscribe','put','update','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x52e17d,_0x427654){var _0x7c51f=function(_0x1283a5){while(--_0x1283a5){_0x52e17d['push'](_0x52e17d['shift']());}};_0x7c51f(++_0x427654);}(_0x62fe,0x7a));var _0xe62f=function(_0x6ce405,_0x44515f){_0x6ce405=_0x6ce405-0x0;var _0x35f0e9=_0x62fe[_0x6ce405];return _0x35f0e9;};'use strict';var multer=require(_0xe62f('0x0'));var util=require(_0xe62f('0x1'));var path=require(_0xe62f('0x2'));var timeout=require('connect-timeout');var express=require(_0xe62f('0x3'));var router=express[_0xe62f('0x4')]();var fs_extra=require(_0xe62f('0x5'));var auth=require(_0xe62f('0x6'));var interaction=require(_0xe62f('0x7'));var config=require(_0xe62f('0x8'));var controller=require('./voiceRecording.controller');router[_0xe62f('0x9')]('/',auth[_0xe62f('0xa')](),controller[_0xe62f('0xb')]);router[_0xe62f('0x9')](_0xe62f('0xc'),auth[_0xe62f('0xa')](),controller['describe']);router['get'](_0xe62f('0xd'),auth[_0xe62f('0xa')](),controller['show']);router[_0xe62f('0x9')](_0xe62f('0xe'),auth[_0xe62f('0xa')](),controller[_0xe62f('0xf')]);router[_0xe62f('0x9')]('/:id/downloads',controller[_0xe62f('0x10')]);router['get'](_0xe62f('0x11'),auth[_0xe62f('0xa')](),controller['downloadTranscribe']);router[_0xe62f('0x12')]('/',auth['isAuthenticated'](),controller[_0xe62f('0x13')]);router[_0xe62f('0x12')]('/:id/transcribe',auth['isAuthenticated'](),controller[_0xe62f('0x14')]);router[_0xe62f('0x15')]('/:id',auth[_0xe62f('0xa')](),controller[_0xe62f('0x16')]);router[_0xe62f('0x17')](_0xe62f('0xd'),auth[_0xe62f('0xa')](),controller[_0xe62f('0x18')]);module[_0xe62f('0x19')]=router;