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