7dcd2a73f80fcddc2813e26f369342e8e0da2bb2
[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 _0x401e=['update','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','./voiceRecording.controller','get','isAuthenticated','describe','show','/:id/download','download','/:id/downloads','downloads','create','/:id/transcribe','/:id'];(function(_0x3474ac,_0x22d0f7){var _0x5345ec=function(_0x45056e){while(--_0x45056e){_0x3474ac['push'](_0x3474ac['shift']());}};_0x5345ec(++_0x22d0f7);}(_0x401e,0x152));var _0xe401=function(_0x33c3be,_0xaba6de){_0x33c3be=_0x33c3be-0x0;var _0x5643fb=_0x401e[_0x33c3be];return _0x5643fb;};'use strict';var multer=require(_0xe401('0x0'));var util=require(_0xe401('0x1'));var path=require(_0xe401('0x2'));var timeout=require(_0xe401('0x3'));var express=require('express');var router=express[_0xe401('0x4')]();var fs_extra=require(_0xe401('0x5'));var auth=require(_0xe401('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xe401('0x7'));router[_0xe401('0x8')]('/',auth[_0xe401('0x9')](),controller['index']);router[_0xe401('0x8')]('/describe',auth[_0xe401('0x9')](),controller[_0xe401('0xa')]);router['get']('/:id',auth[_0xe401('0x9')](),controller[_0xe401('0xb')]);router[_0xe401('0x8')](_0xe401('0xc'),auth[_0xe401('0x9')](),controller[_0xe401('0xd')]);router[_0xe401('0x8')](_0xe401('0xe'),controller[_0xe401('0xf')]);router['get']('/:id/transcribe',auth['isAuthenticated'](),controller['downloadTranscribe']);router['post']('/',auth[_0xe401('0x9')](),controller[_0xe401('0x10')]);router['post'](_0xe401('0x11'),auth['isAuthenticated'](),controller['runTranscribe']);router['put'](_0xe401('0x12'),auth[_0xe401('0x9')](),controller[_0xe401('0x13')]);router['delete'](_0xe401('0x12'),auth['isAuthenticated'](),controller['destroy']);module[_0xe401('0x14')]=router;