Built motion from commit efa66e19.|2.6.22
[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 _0x37ff=['isAuthenticated','index','/describe','describe','get','/:id','/:id/download','downloads','downloadTranscribe','post','create','/:id/transcribe','runTranscribe','put','update','delete','exports','Router','fs-extra','../../components/interaction/service','./voiceRecording.controller'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x37ff,0x1ca));var _0xf37f=function(_0x38987f,_0xc79720){_0x38987f=_0x38987f-0x0;var _0x4cb697=_0x37ff[_0x38987f];return _0x4cb697;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf37f('0x0')]();var fs_extra=require(_0xf37f('0x1'));var auth=require('../../components/auth/service');var interaction=require(_0xf37f('0x2'));var config=require('../../config/environment');var controller=require(_0xf37f('0x3'));router['get']('/',auth[_0xf37f('0x4')](),controller[_0xf37f('0x5')]);router['get'](_0xf37f('0x6'),auth['isAuthenticated'](),controller[_0xf37f('0x7')]);router[_0xf37f('0x8')](_0xf37f('0x9'),auth[_0xf37f('0x4')](),controller['show']);router[_0xf37f('0x8')](_0xf37f('0xa'),auth[_0xf37f('0x4')](),controller['download']);router[_0xf37f('0x8')]('/:id/downloads',controller[_0xf37f('0xb')]);router[_0xf37f('0x8')]('/:id/transcribe',auth['isAuthenticated'](),controller[_0xf37f('0xc')]);router[_0xf37f('0xd')]('/',auth[_0xf37f('0x4')](),controller[_0xf37f('0xe')]);router[_0xf37f('0xd')](_0xf37f('0xf'),auth[_0xf37f('0x4')](),controller[_0xf37f('0x10')]);router[_0xf37f('0x11')](_0xf37f('0x9'),auth['isAuthenticated'](),controller[_0xf37f('0x12')]);router[_0xf37f('0x13')](_0xf37f('0x9'),auth[_0xf37f('0x4')](),controller['destroy']);module[_0xf37f('0x14')]=router;