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