Built motion from commit (unavailable).|2.5.20
[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 _0x1d2b=['express','Router','../../components/interaction/service','./voiceRecording.controller','get','isAuthenticated','index','describe','/:id','show','/:id/download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','create','runTranscribe','update','delete','destroy','multer','path'];(function(_0xb4c278,_0x220384){var _0x5dc5ba=function(_0x5b6ee0){while(--_0x5b6ee0){_0xb4c278['push'](_0xb4c278['shift']());}};_0x5dc5ba(++_0x220384);}(_0x1d2b,0x106));var _0xb1d2=function(_0x4b7b62,_0x4920a9){_0x4b7b62=_0x4b7b62-0x0;var _0x2280df=_0x1d2b[_0x4b7b62];return _0x2280df;};'use strict';var multer=require(_0xb1d2('0x0'));var util=require('util');var path=require(_0xb1d2('0x1'));var timeout=require('connect-timeout');var express=require(_0xb1d2('0x2'));var router=express[_0xb1d2('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xb1d2('0x4'));var config=require('../../config/environment');var controller=require(_0xb1d2('0x5'));router[_0xb1d2('0x6')]('/',auth[_0xb1d2('0x7')](),controller[_0xb1d2('0x8')]);router['get']('/describe',auth[_0xb1d2('0x7')](),controller[_0xb1d2('0x9')]);router['get'](_0xb1d2('0xa'),auth['isAuthenticated'](),controller[_0xb1d2('0xb')]);router[_0xb1d2('0x6')](_0xb1d2('0xc'),auth[_0xb1d2('0x7')](),controller['download']);router[_0xb1d2('0x6')](_0xb1d2('0xd'),controller[_0xb1d2('0xe')]);router[_0xb1d2('0x6')](_0xb1d2('0xf'),auth['isAuthenticated'](),controller[_0xb1d2('0x10')]);router['post']('/',auth[_0xb1d2('0x7')](),controller[_0xb1d2('0x11')]);router['post']('/:id/transcribe',auth[_0xb1d2('0x7')](),controller[_0xb1d2('0x12')]);router['put']('/:id',auth[_0xb1d2('0x7')](),controller[_0xb1d2('0x13')]);router[_0xb1d2('0x14')]('/:id',auth[_0xb1d2('0x7')](),controller[_0xb1d2('0x15')]);module['exports']=router;