938c337380a9eecf1a3f599666ceb9d56d81bcf8
[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 _0xb9b1=['util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download','download','/:id/downloads','/:id/transcribe','create','post','update','delete','exports','multer'];(function(_0x34c30b,_0x83d8d6){var _0xb787ab=function(_0x2938a4){while(--_0x2938a4){_0x34c30b['push'](_0x34c30b['shift']());}};_0xb787ab(++_0x83d8d6);}(_0xb9b1,0x12a));var _0x1b9b=function(_0x584bdd,_0x40997c){_0x584bdd=_0x584bdd-0x0;var _0x5d5298=_0xb9b1[_0x584bdd];return _0x5d5298;};'use strict';var multer=require(_0x1b9b('0x0'));var util=require(_0x1b9b('0x1'));var path=require('path');var timeout=require(_0x1b9b('0x2'));var express=require(_0x1b9b('0x3'));var router=express[_0x1b9b('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x1b9b('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x1b9b('0x6'));var controller=require('./voiceRecording.controller');router[_0x1b9b('0x7')]('/',auth[_0x1b9b('0x8')](),controller[_0x1b9b('0x9')]);router['get'](_0x1b9b('0xa'),auth[_0x1b9b('0x8')](),controller[_0x1b9b('0xb')]);router[_0x1b9b('0x7')](_0x1b9b('0xc'),auth[_0x1b9b('0x8')](),controller[_0x1b9b('0xd')]);router['get'](_0x1b9b('0xe'),auth[_0x1b9b('0x8')](),controller[_0x1b9b('0xf')]);router[_0x1b9b('0x7')](_0x1b9b('0x10'),controller['downloads']);router[_0x1b9b('0x7')](_0x1b9b('0x11'),auth[_0x1b9b('0x8')](),controller['downloadTranscribe']);router['post']('/',auth[_0x1b9b('0x8')](),controller[_0x1b9b('0x12')]);router[_0x1b9b('0x13')](_0x1b9b('0x11'),auth['isAuthenticated'](),controller['runTranscribe']);router['put'](_0x1b9b('0xc'),auth[_0x1b9b('0x8')](),controller[_0x1b9b('0x14')]);router[_0x1b9b('0x15')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x1b9b('0x16')]=router;