Built motion from commit 1fd437e9.|2.6.19
[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 _0x764b=['describe','/:id','show','download','downloads','post','create','/:id/transcribe','runTranscribe','update','delete','destroy','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','/describe'];(function(_0x579374,_0x4135bc){var _0x2c4d41=function(_0x42a26d){while(--_0x42a26d){_0x579374['push'](_0x579374['shift']());}};_0x2c4d41(++_0x4135bc);}(_0x764b,0x84));var _0xb764=function(_0x11005e,_0x20c3d2){_0x11005e=_0x11005e-0x0;var _0x29338f=_0x764b[_0x11005e];return _0x29338f;};'use strict';var multer=require(_0xb764('0x0'));var util=require(_0xb764('0x1'));var path=require(_0xb764('0x2'));var timeout=require(_0xb764('0x3'));var express=require(_0xb764('0x4'));var router=express['Router']();var fs_extra=require(_0xb764('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xb764('0x6'));var config=require(_0xb764('0x7'));var controller=require(_0xb764('0x8'));router[_0xb764('0x9')]('/',auth[_0xb764('0xa')](),controller['index']);router[_0xb764('0x9')](_0xb764('0xb'),auth[_0xb764('0xa')](),controller[_0xb764('0xc')]);router[_0xb764('0x9')](_0xb764('0xd'),auth[_0xb764('0xa')](),controller[_0xb764('0xe')]);router[_0xb764('0x9')]('/:id/download',auth[_0xb764('0xa')](),controller[_0xb764('0xf')]);router[_0xb764('0x9')]('/:id/downloads',controller[_0xb764('0x10')]);router[_0xb764('0x9')]('/:id/transcribe',auth[_0xb764('0xa')](),controller['downloadTranscribe']);router[_0xb764('0x11')]('/',auth[_0xb764('0xa')](),controller[_0xb764('0x12')]);router['post'](_0xb764('0x13'),auth[_0xb764('0xa')](),controller[_0xb764('0x14')]);router['put'](_0xb764('0xd'),auth[_0xb764('0xa')](),controller[_0xb764('0x15')]);router[_0xb764('0x16')]('/:id',auth['isAuthenticated'](),controller[_0xb764('0x17')]);module['exports']=router;