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