Built motion from commit 85328c08.|2.5.50
[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 _0xb50d=['/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','create','runTranscribe','put','update','destroy','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download','download'];(function(_0x5b766e,_0x4fa94f){var _0x536a56=function(_0x13ccb5){while(--_0x13ccb5){_0x5b766e['push'](_0x5b766e['shift']());}};_0x536a56(++_0x4fa94f);}(_0xb50d,0xd9));var _0xdb50=function(_0x3a84bf,_0x21ee24){_0x3a84bf=_0x3a84bf-0x0;var _0x56c974=_0xb50d[_0x3a84bf];return _0x56c974;};'use strict';var multer=require(_0xdb50('0x0'));var util=require('util');var path=require(_0xdb50('0x1'));var timeout=require('connect-timeout');var express=require(_0xdb50('0x2'));var router=express[_0xdb50('0x3')]();var fs_extra=require(_0xdb50('0x4'));var auth=require(_0xdb50('0x5'));var interaction=require(_0xdb50('0x6'));var config=require('../../config/environment');var controller=require(_0xdb50('0x7'));router[_0xdb50('0x8')]('/',auth[_0xdb50('0x9')](),controller[_0xdb50('0xa')]);router['get'](_0xdb50('0xb'),auth[_0xdb50('0x9')](),controller[_0xdb50('0xc')]);router[_0xdb50('0x8')](_0xdb50('0xd'),auth['isAuthenticated'](),controller[_0xdb50('0xe')]);router[_0xdb50('0x8')](_0xdb50('0xf'),auth['isAuthenticated'](),controller[_0xdb50('0x10')]);router['get'](_0xdb50('0x11'),controller[_0xdb50('0x12')]);router[_0xdb50('0x8')](_0xdb50('0x13'),auth[_0xdb50('0x9')](),controller[_0xdb50('0x14')]);router['post']('/',auth[_0xdb50('0x9')](),controller[_0xdb50('0x15')]);router['post'](_0xdb50('0x13'),auth[_0xdb50('0x9')](),controller[_0xdb50('0x16')]);router[_0xdb50('0x17')](_0xdb50('0xd'),auth[_0xdb50('0x9')](),controller[_0xdb50('0x18')]);router['delete'](_0xdb50('0xd'),auth['isAuthenticated'](),controller[_0xdb50('0x19')]);module['exports']=router;