09bb4b64050d87ea868aab626b5a8b9d3c43dcc1
[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 _0x700a=['util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','describe','/:id','show','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','create','put','update','delete','destroy','exports','multer'];(function(_0x36643e,_0x5e365b){var _0xd0ecf6=function(_0x275cb3){while(--_0x275cb3){_0x36643e['push'](_0x36643e['shift']());}};_0xd0ecf6(++_0x5e365b);}(_0x700a,0xfb));var _0xa700=function(_0x4906ec,_0x17686a){_0x4906ec=_0x4906ec-0x0;var _0x4f4490=_0x700a[_0x4906ec];return _0x4f4490;};'use strict';var multer=require(_0xa700('0x0'));var util=require(_0xa700('0x1'));var path=require(_0xa700('0x2'));var timeout=require(_0xa700('0x3'));var express=require('express');var router=express[_0xa700('0x4')]();var fs_extra=require(_0xa700('0x5'));var auth=require(_0xa700('0x6'));var interaction=require(_0xa700('0x7'));var config=require(_0xa700('0x8'));var controller=require(_0xa700('0x9'));router[_0xa700('0xa')]('/',auth[_0xa700('0xb')](),controller[_0xa700('0xc')]);router['get']('/describe',auth[_0xa700('0xb')](),controller[_0xa700('0xd')]);router['get'](_0xa700('0xe'),auth[_0xa700('0xb')](),controller[_0xa700('0xf')]);router[_0xa700('0xa')]('/:id/download',auth[_0xa700('0xb')](),controller[_0xa700('0x10')]);router['get'](_0xa700('0x11'),controller[_0xa700('0x12')]);router[_0xa700('0xa')](_0xa700('0x13'),auth[_0xa700('0xb')](),controller[_0xa700('0x14')]);router[_0xa700('0x15')]('/',auth[_0xa700('0xb')](),controller[_0xa700('0x16')]);router[_0xa700('0x15')](_0xa700('0x13'),auth[_0xa700('0xb')](),controller['runTranscribe']);router[_0xa700('0x17')]('/:id',auth[_0xa700('0xb')](),controller[_0xa700('0x18')]);router[_0xa700('0x19')](_0xa700('0xe'),auth['isAuthenticated'](),controller[_0xa700('0x1a')]);module[_0xa700('0x1b')]=router;