dbcf5c7dc547deb05642d2b8de46c67357a12b0e
[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 _0x6a36=['show','/:id/download','download','/:id/downloads','downloadTranscribe','post','runTranscribe','put','delete','destroy','exports','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x6a36,0xb3));var _0x66a3=function(_0x52e995,_0x842254){_0x52e995=_0x52e995-0x0;var _0x596203=_0x6a36[_0x52e995];return _0x596203;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x66a3('0x0'));var express=require(_0x66a3('0x1'));var router=express[_0x66a3('0x2')]();var fs_extra=require(_0x66a3('0x3'));var auth=require(_0x66a3('0x4'));var interaction=require(_0x66a3('0x5'));var config=require('../../config/environment');var controller=require(_0x66a3('0x6'));router[_0x66a3('0x7')]('/',auth[_0x66a3('0x8')](),controller[_0x66a3('0x9')]);router[_0x66a3('0x7')](_0x66a3('0xa'),auth[_0x66a3('0x8')](),controller[_0x66a3('0xb')]);router[_0x66a3('0x7')](_0x66a3('0xc'),auth[_0x66a3('0x8')](),controller[_0x66a3('0xd')]);router[_0x66a3('0x7')](_0x66a3('0xe'),auth[_0x66a3('0x8')](),controller[_0x66a3('0xf')]);router[_0x66a3('0x7')](_0x66a3('0x10'),controller['downloads']);router[_0x66a3('0x7')]('/:id/transcribe',auth[_0x66a3('0x8')](),controller[_0x66a3('0x11')]);router[_0x66a3('0x12')]('/',auth[_0x66a3('0x8')](),controller['create']);router[_0x66a3('0x12')]('/:id/transcribe',auth['isAuthenticated'](),controller[_0x66a3('0x13')]);router[_0x66a3('0x14')](_0x66a3('0xc'),auth[_0x66a3('0x8')](),controller['update']);router[_0x66a3('0x15')]('/:id',auth['isAuthenticated'](),controller[_0x66a3('0x16')]);module[_0x66a3('0x17')]=router;