Built motion from commit a61a4a20.|2.5.46
[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 _0x5fde=['downloadTranscribe','post','create','update','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','isAuthenticated','index','describe','/:id','show','/:id/download','download','downloads'];(function(_0x4c8a8f,_0x997ef){var _0x404500=function(_0x1c6072){while(--_0x1c6072){_0x4c8a8f['push'](_0x4c8a8f['shift']());}};_0x404500(++_0x997ef);}(_0x5fde,0x1e9));var _0xe5fd=function(_0x38fe15,_0x51a182){_0x38fe15=_0x38fe15-0x0;var _0x28ed8a=_0x5fde[_0x38fe15];return _0x28ed8a;};'use strict';var multer=require(_0xe5fd('0x0'));var util=require(_0xe5fd('0x1'));var path=require(_0xe5fd('0x2'));var timeout=require(_0xe5fd('0x3'));var express=require(_0xe5fd('0x4'));var router=express[_0xe5fd('0x5')]();var fs_extra=require(_0xe5fd('0x6'));var auth=require(_0xe5fd('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./voiceRecording.controller');router[_0xe5fd('0x8')]('/',auth[_0xe5fd('0x9')](),controller[_0xe5fd('0xa')]);router[_0xe5fd('0x8')]('/describe',auth[_0xe5fd('0x9')](),controller[_0xe5fd('0xb')]);router[_0xe5fd('0x8')](_0xe5fd('0xc'),auth[_0xe5fd('0x9')](),controller[_0xe5fd('0xd')]);router[_0xe5fd('0x8')](_0xe5fd('0xe'),auth[_0xe5fd('0x9')](),controller[_0xe5fd('0xf')]);router[_0xe5fd('0x8')]('/:id/downloads',controller[_0xe5fd('0x10')]);router[_0xe5fd('0x8')]('/:id/transcribe',auth[_0xe5fd('0x9')](),controller[_0xe5fd('0x11')]);router[_0xe5fd('0x12')]('/',auth[_0xe5fd('0x9')](),controller[_0xe5fd('0x13')]);router[_0xe5fd('0x12')]('/:id/transcribe',auth['isAuthenticated'](),controller['runTranscribe']);router['put'](_0xe5fd('0xc'),auth['isAuthenticated'](),controller[_0xe5fd('0x14')]);router['delete']('/:id',auth[_0xe5fd('0x9')](),controller[_0xe5fd('0x15')]);module['exports']=router;