9432d224147534382b772923b424c7389337ac98
[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 _0x5073=['post','runTranscribe','update','destroy','multer','util','path','express','Router','../../components/auth/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/downloads','downloads','/:id/transcribe'];(function(_0x4b627a,_0x390c28){var _0x2fe234=function(_0x15383c){while(--_0x15383c){_0x4b627a['push'](_0x4b627a['shift']());}};_0x2fe234(++_0x390c28);}(_0x5073,0x1a8));var _0x3507=function(_0x26c26c,_0x39f9cf){_0x26c26c=_0x26c26c-0x0;var _0x153b04=_0x5073[_0x26c26c];return _0x153b04;};'use strict';var multer=require(_0x3507('0x0'));var util=require(_0x3507('0x1'));var path=require(_0x3507('0x2'));var timeout=require('connect-timeout');var express=require(_0x3507('0x3'));var router=express[_0x3507('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x3507('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x3507('0x6'));var controller=require(_0x3507('0x7'));router[_0x3507('0x8')]('/',auth[_0x3507('0x9')](),controller[_0x3507('0xa')]);router[_0x3507('0x8')](_0x3507('0xb'),auth[_0x3507('0x9')](),controller['describe']);router[_0x3507('0x8')](_0x3507('0xc'),auth[_0x3507('0x9')](),controller[_0x3507('0xd')]);router['get']('/:id/download',auth[_0x3507('0x9')](),controller['download']);router[_0x3507('0x8')](_0x3507('0xe'),controller[_0x3507('0xf')]);router[_0x3507('0x8')](_0x3507('0x10'),auth[_0x3507('0x9')](),controller['downloadTranscribe']);router[_0x3507('0x11')]('/',auth[_0x3507('0x9')](),controller['create']);router[_0x3507('0x11')](_0x3507('0x10'),auth[_0x3507('0x9')](),controller[_0x3507('0x12')]);router['put'](_0x3507('0xc'),auth[_0x3507('0x9')](),controller[_0x3507('0x13')]);router['delete'](_0x3507('0xc'),auth[_0x3507('0x9')](),controller[_0x3507('0x14')]);module['exports']=router;