Built motion from commit 10af8726.|2.6.34
[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 _0x48bc=['util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','/:id','show','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','update','delete','destroy','exports','multer'];(function(_0x1347f8,_0x233feb){var _0x218368=function(_0x3f4ca3){while(--_0x3f4ca3){_0x1347f8['push'](_0x1347f8['shift']());}};_0x218368(++_0x233feb);}(_0x48bc,0x99));var _0xc48b=function(_0x3b66e9,_0x541582){_0x3b66e9=_0x3b66e9-0x0;var _0x6af064=_0x48bc[_0x3b66e9];return _0x6af064;};'use strict';var multer=require(_0xc48b('0x0'));var util=require(_0xc48b('0x1'));var path=require(_0xc48b('0x2'));var timeout=require(_0xc48b('0x3'));var express=require('express');var router=express[_0xc48b('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xc48b('0x5'));var interaction=require(_0xc48b('0x6'));var config=require(_0xc48b('0x7'));var controller=require(_0xc48b('0x8'));router[_0xc48b('0x9')]('/',auth[_0xc48b('0xa')](),controller['index']);router[_0xc48b('0x9')]('/describe',auth[_0xc48b('0xa')](),controller['describe']);router[_0xc48b('0x9')](_0xc48b('0xb'),auth[_0xc48b('0xa')](),controller[_0xc48b('0xc')]);router['get']('/:id/download',auth[_0xc48b('0xa')](),controller['download']);router[_0xc48b('0x9')](_0xc48b('0xd'),controller[_0xc48b('0xe')]);router[_0xc48b('0x9')](_0xc48b('0xf'),auth[_0xc48b('0xa')](),controller[_0xc48b('0x10')]);router[_0xc48b('0x11')]('/',auth[_0xc48b('0xa')](),controller['create']);router[_0xc48b('0x11')](_0xc48b('0xf'),auth[_0xc48b('0xa')](),controller['runTranscribe']);router['put']('/:id',auth[_0xc48b('0xa')](),controller[_0xc48b('0x12')]);router[_0xc48b('0x13')](_0xc48b('0xb'),auth[_0xc48b('0xa')](),controller[_0xc48b('0x14')]);module[_0xc48b('0x15')]=router;