4cb8b2a52115cc86d165b601c2b6f55f4bc9bbf1
[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 _0x7134=['exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceRecording.controller','get','index','describe','/:id','isAuthenticated','/:id/download','/:id/downloads','post','put','update','delete'];(function(_0x2fc7c3,_0xdfbec0){var _0x317b9a=function(_0x5032c3){while(--_0x5032c3){_0x2fc7c3['push'](_0x2fc7c3['shift']());}};_0x317b9a(++_0xdfbec0);}(_0x7134,0x1cf));var _0x4713=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x7134[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0x4713('0x0'));var util=require(_0x4713('0x1'));var path=require('path');var timeout=require(_0x4713('0x2'));var express=require(_0x4713('0x3'));var router=express[_0x4713('0x4')]();var fs_extra=require(_0x4713('0x5'));var auth=require(_0x4713('0x6'));var interaction=require(_0x4713('0x7'));var config=require('../../config/environment');var controller=require(_0x4713('0x8'));router[_0x4713('0x9')]('/',auth['isAuthenticated'](),controller[_0x4713('0xa')]);router[_0x4713('0x9')]('/describe',auth['isAuthenticated'](),controller[_0x4713('0xb')]);router[_0x4713('0x9')](_0x4713('0xc'),auth[_0x4713('0xd')](),controller['show']);router[_0x4713('0x9')](_0x4713('0xe'),auth[_0x4713('0xd')](),controller['download']);router[_0x4713('0x9')](_0x4713('0xf'),controller['downloads']);router['get']('/:id/transcribe',auth['isAuthenticated'](),controller['downloadTranscribe']);router[_0x4713('0x10')]('/',auth[_0x4713('0xd')](),controller['create']);router[_0x4713('0x10')]('/:id/transcribe',auth[_0x4713('0xd')](),controller['runTranscribe']);router[_0x4713('0x11')]('/:id',auth[_0x4713('0xd')](),controller[_0x4713('0x12')]);router[_0x4713('0x13')](_0x4713('0xc'),auth[_0x4713('0xd')](),controller['destroy']);module[_0x4713('0x14')]=router;