13c3035d900848181be49fe6fe0d2b9c3997f708
[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 _0xd15d=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id','/:id/download','downloads','/:id/transcribe','downloadTranscribe','post','runTranscribe','put','update','destroy','multer'];(function(_0x1035c1,_0x2d8583){var _0x308d67=function(_0x58ddb6){while(--_0x58ddb6){_0x1035c1['push'](_0x1035c1['shift']());}};_0x308d67(++_0x2d8583);}(_0xd15d,0x1d3));var _0xdd15=function(_0x21803c,_0x1f7f84){_0x21803c=_0x21803c-0x0;var _0x438514=_0xd15d[_0x21803c];return _0x438514;};'use strict';var multer=require(_0xdd15('0x0'));var util=require(_0xdd15('0x1'));var path=require(_0xdd15('0x2'));var timeout=require(_0xdd15('0x3'));var express=require(_0xdd15('0x4'));var router=express[_0xdd15('0x5')]();var fs_extra=require(_0xdd15('0x6'));var auth=require(_0xdd15('0x7'));var interaction=require(_0xdd15('0x8'));var config=require(_0xdd15('0x9'));var controller=require(_0xdd15('0xa'));router[_0xdd15('0xb')]('/',auth[_0xdd15('0xc')](),controller[_0xdd15('0xd')]);router[_0xdd15('0xb')](_0xdd15('0xe'),auth[_0xdd15('0xc')](),controller[_0xdd15('0xf')]);router['get'](_0xdd15('0x10'),auth[_0xdd15('0xc')](),controller['show']);router[_0xdd15('0xb')](_0xdd15('0x11'),auth['isAuthenticated'](),controller['download']);router['get']('/:id/downloads',controller[_0xdd15('0x12')]);router[_0xdd15('0xb')](_0xdd15('0x13'),auth[_0xdd15('0xc')](),controller[_0xdd15('0x14')]);router['post']('/',auth[_0xdd15('0xc')](),controller['create']);router[_0xdd15('0x15')]('/:id/transcribe',auth['isAuthenticated'](),controller[_0xdd15('0x16')]);router[_0xdd15('0x17')]('/:id',auth[_0xdd15('0xc')](),controller[_0xdd15('0x18')]);router['delete'](_0xdd15('0x10'),auth[_0xdd15('0xc')](),controller[_0xdd15('0x19')]);module['exports']=router;