Built motion from commit 9e1399f3.|2.5.37
[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 _0x0eb7=['describe','/:id','/:id/download','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','create','runTranscribe','put','update','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe'];(function(_0x24d1f0,_0x29e0df){var _0xed97da=function(_0x4b0fa1){while(--_0x4b0fa1){_0x24d1f0['push'](_0x24d1f0['shift']());}};_0xed97da(++_0x29e0df);}(_0x0eb7,0x1bf));var _0x70eb=function(_0x9c94fe,_0x350465){_0x9c94fe=_0x9c94fe-0x0;var _0x16ffb3=_0x0eb7[_0x9c94fe];return _0x16ffb3;};'use strict';var multer=require(_0x70eb('0x0'));var util=require(_0x70eb('0x1'));var path=require(_0x70eb('0x2'));var timeout=require(_0x70eb('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x70eb('0x4'));var auth=require(_0x70eb('0x5'));var interaction=require(_0x70eb('0x6'));var config=require(_0x70eb('0x7'));var controller=require('./voiceRecording.controller');router[_0x70eb('0x8')]('/',auth[_0x70eb('0x9')](),controller[_0x70eb('0xa')]);router[_0x70eb('0x8')](_0x70eb('0xb'),auth[_0x70eb('0x9')](),controller[_0x70eb('0xc')]);router[_0x70eb('0x8')](_0x70eb('0xd'),auth[_0x70eb('0x9')](),controller['show']);router[_0x70eb('0x8')](_0x70eb('0xe'),auth['isAuthenticated'](),controller[_0x70eb('0xf')]);router['get'](_0x70eb('0x10'),controller[_0x70eb('0x11')]);router[_0x70eb('0x8')](_0x70eb('0x12'),auth['isAuthenticated'](),controller[_0x70eb('0x13')]);router[_0x70eb('0x14')]('/',auth['isAuthenticated'](),controller[_0x70eb('0x15')]);router[_0x70eb('0x14')](_0x70eb('0x12'),auth[_0x70eb('0x9')](),controller[_0x70eb('0x16')]);router[_0x70eb('0x17')]('/:id',auth[_0x70eb('0x9')](),controller[_0x70eb('0x18')]);router['delete']('/:id',auth[_0x70eb('0x9')](),controller[_0x70eb('0x19')]);module[_0x70eb('0x1a')]=router;