2846a552004c6ed81b74da00764e3d14cfc57e3b
[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 _0x3654=['post','create','/:id/transcribe','put','update','delete','/:id','destroy','exports','util','path','connect-timeout','express','Router','../../components/interaction/service','isAuthenticated','/describe','describe','show','get','/:id/download','download','downloads'];(function(_0x42f2f9,_0x5d1cfb){var _0x306b0a=function(_0xccfce){while(--_0xccfce){_0x42f2f9['push'](_0x42f2f9['shift']());}};_0x306b0a(++_0x5d1cfb);}(_0x3654,0xaa));var _0x4365=function(_0x233aa3,_0x3312d1){_0x233aa3=_0x233aa3-0x0;var _0x1eee51=_0x3654[_0x233aa3];return _0x1eee51;};'use strict';var multer=require('multer');var util=require(_0x4365('0x0'));var path=require(_0x4365('0x1'));var timeout=require(_0x4365('0x2'));var express=require(_0x4365('0x3'));var router=express[_0x4365('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x4365('0x5'));var config=require('../../config/environment');var controller=require('./voiceRecording.controller');router['get']('/',auth[_0x4365('0x6')](),controller['index']);router['get'](_0x4365('0x7'),auth[_0x4365('0x6')](),controller[_0x4365('0x8')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x4365('0x9')]);router[_0x4365('0xa')](_0x4365('0xb'),auth[_0x4365('0x6')](),controller[_0x4365('0xc')]);router['get']('/:id/downloads',controller[_0x4365('0xd')]);router[_0x4365('0xa')]('/:id/transcribe',auth[_0x4365('0x6')](),controller['downloadTranscribe']);router[_0x4365('0xe')]('/',auth[_0x4365('0x6')](),controller[_0x4365('0xf')]);router[_0x4365('0xe')](_0x4365('0x10'),auth[_0x4365('0x6')](),controller['runTranscribe']);router[_0x4365('0x11')]('/:id',auth[_0x4365('0x6')](),controller[_0x4365('0x12')]);router[_0x4365('0x13')](_0x4365('0x14'),auth['isAuthenticated'](),controller[_0x4365('0x15')]);module[_0x4365('0x16')]=router;