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