Built motion from commit (unavailable).|2.5.31
[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 _0xdd14=['/:id','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/describe','isAuthenticated','describe','show','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','create','post','runTranscribe','put','update','delete'];(function(_0x26f53a,_0xda01cf){var _0x51b580=function(_0x21fb51){while(--_0x21fb51){_0x26f53a['push'](_0x26f53a['shift']());}};_0x51b580(++_0xda01cf);}(_0xdd14,0x1c4));var _0x4dd1=function(_0x50433d,_0x1d79bf){_0x50433d=_0x50433d-0x0;var _0x55e0e9=_0xdd14[_0x50433d];return _0x55e0e9;};'use strict';var multer=require(_0x4dd1('0x0'));var util=require(_0x4dd1('0x1'));var path=require(_0x4dd1('0x2'));var timeout=require(_0x4dd1('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x4dd1('0x4'));var interaction=require(_0x4dd1('0x5'));var config=require(_0x4dd1('0x6'));var controller=require('./voiceRecording.controller');router[_0x4dd1('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x4dd1('0x8'),auth[_0x4dd1('0x9')](),controller[_0x4dd1('0xa')]);router[_0x4dd1('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x4dd1('0xb')]);router['get']('/:id/download',auth[_0x4dd1('0x9')](),controller[_0x4dd1('0xc')]);router[_0x4dd1('0x7')](_0x4dd1('0xd'),controller[_0x4dd1('0xe')]);router[_0x4dd1('0x7')](_0x4dd1('0xf'),auth[_0x4dd1('0x9')](),controller[_0x4dd1('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0x4dd1('0x11')]);router[_0x4dd1('0x12')]('/:id/transcribe',auth['isAuthenticated'](),controller[_0x4dd1('0x13')]);router[_0x4dd1('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x4dd1('0x15')]);router[_0x4dd1('0x16')](_0x4dd1('0x17'),auth[_0x4dd1('0x9')](),controller['destroy']);module[_0x4dd1('0x18')]=router;