d094b47aada4ed5413a684c09e3ae841cc9ab875
[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 _0xfb66=['../../components/interaction/service','../../config/environment','./voiceRecording.controller','isAuthenticated','/describe','describe','/:id','show','get','/:id/download','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','create','runTranscribe','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x3adfa1,_0x63fa28){var _0x218552=function(_0x194842){while(--_0x194842){_0x3adfa1['push'](_0x3adfa1['shift']());}};_0x218552(++_0x63fa28);}(_0xfb66,0x124));var _0x6fb6=function(_0x31e29a,_0x349c9b){_0x31e29a=_0x31e29a-0x0;var _0x32d892=_0xfb66[_0x31e29a];return _0x32d892;};'use strict';var multer=require(_0x6fb6('0x0'));var util=require(_0x6fb6('0x1'));var path=require(_0x6fb6('0x2'));var timeout=require(_0x6fb6('0x3'));var express=require(_0x6fb6('0x4'));var router=express[_0x6fb6('0x5')]();var fs_extra=require(_0x6fb6('0x6'));var auth=require(_0x6fb6('0x7'));var interaction=require(_0x6fb6('0x8'));var config=require(_0x6fb6('0x9'));var controller=require(_0x6fb6('0xa'));router['get']('/',auth[_0x6fb6('0xb')](),controller['index']);router['get'](_0x6fb6('0xc'),auth[_0x6fb6('0xb')](),controller[_0x6fb6('0xd')]);router['get'](_0x6fb6('0xe'),auth[_0x6fb6('0xb')](),controller[_0x6fb6('0xf')]);router[_0x6fb6('0x10')](_0x6fb6('0x11'),auth['isAuthenticated'](),controller[_0x6fb6('0x12')]);router[_0x6fb6('0x10')](_0x6fb6('0x13'),controller[_0x6fb6('0x14')]);router[_0x6fb6('0x10')](_0x6fb6('0x15'),auth[_0x6fb6('0xb')](),controller[_0x6fb6('0x16')]);router[_0x6fb6('0x17')]('/',auth[_0x6fb6('0xb')](),controller[_0x6fb6('0x18')]);router[_0x6fb6('0x17')](_0x6fb6('0x15'),auth[_0x6fb6('0xb')](),controller[_0x6fb6('0x19')]);router[_0x6fb6('0x1a')](_0x6fb6('0xe'),auth['isAuthenticated'](),controller[_0x6fb6('0x1b')]);router[_0x6fb6('0x1c')]('/:id',auth[_0x6fb6('0xb')](),controller[_0x6fb6('0x1d')]);module['exports']=router;