103e8434b4f409ad58c0194dda129ffa684982d0
[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 _0xd773=['exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','/describe','/:id','show','/:id/download','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','runTranscribe','put','update','delete','destroy'];(function(_0x194f09,_0x5c3a4f){var _0x26e13f=function(_0x4fecfc){while(--_0x4fecfc){_0x194f09['push'](_0x194f09['shift']());}};_0x26e13f(++_0x5c3a4f);}(_0xd773,0xe1));var _0x3d77=function(_0x4a0f6e,_0x31a636){_0x4a0f6e=_0x4a0f6e-0x0;var _0x361ff6=_0xd773[_0x4a0f6e];return _0x361ff6;};'use strict';var multer=require(_0x3d77('0x0'));var util=require(_0x3d77('0x1'));var path=require(_0x3d77('0x2'));var timeout=require(_0x3d77('0x3'));var express=require(_0x3d77('0x4'));var router=express[_0x3d77('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x3d77('0x6'));var interaction=require(_0x3d77('0x7'));var config=require(_0x3d77('0x8'));var controller=require(_0x3d77('0x9'));router[_0x3d77('0xa')]('/',auth[_0x3d77('0xb')](),controller['index']);router[_0x3d77('0xa')](_0x3d77('0xc'),auth[_0x3d77('0xb')](),controller['describe']);router['get'](_0x3d77('0xd'),auth[_0x3d77('0xb')](),controller[_0x3d77('0xe')]);router[_0x3d77('0xa')](_0x3d77('0xf'),auth[_0x3d77('0xb')](),controller[_0x3d77('0x10')]);router[_0x3d77('0xa')](_0x3d77('0x11'),controller[_0x3d77('0x12')]);router[_0x3d77('0xa')](_0x3d77('0x13'),auth['isAuthenticated'](),controller[_0x3d77('0x14')]);router[_0x3d77('0x15')]('/',auth['isAuthenticated'](),controller['create']);router[_0x3d77('0x15')]('/:id/transcribe',auth[_0x3d77('0xb')](),controller[_0x3d77('0x16')]);router[_0x3d77('0x17')](_0x3d77('0xd'),auth['isAuthenticated'](),controller[_0x3d77('0x18')]);router[_0x3d77('0x19')](_0x3d77('0xd'),auth['isAuthenticated'](),controller[_0x3d77('0x1a')]);module[_0x3d77('0x1b')]=router;