Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
hublot
Commits
a0b9d8c0
Commit
a0b9d8c0
authored
Oct 11, 2017
by
samy
Browse files
Store summary and keywords on OpenPaaS
parent
e5bc8b81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
client/lib/archive.js
client/lib/archive.js
+12
-6
No files found.
client/lib/archive.js
View file @
a0b9d8c0
...
...
@@ -20,15 +20,21 @@
'
use strict
'
;
/* global robotLib:true XMLHttpRequest */
/* global robotLib:true
require
XMLHttpRequest */
/* exported robotController */
robotLib
.
archive
=
function
(
config
)
{
return
{
store
(
transcript
)
{
const
xmlhttp
=
new
XMLHttpRequest
();
xmlhttp
.
open
(
'
POST
'
,
config
.
archive
+
'
/json-handler
'
);
xmlhttp
.
setRequestHeader
(
'
Content-Type
'
,
'
application/json;charset=UTF-8
'
);
xmlhttp
.
send
(
JSON
.
stringify
(
transcript
));
const
OpenPaasStore
=
config
.
archive
;
const
xhttp
=
new
XMLHttpRequest
();
if
(
transcript
===
undefined
)
{
console
.
log
(
'
there is no transcription yet!
'
);
return
false
;
}
xhttp
.
open
(
'
POST
'
,
OpenPaasStore
+
'
/summary
'
);
xhttp
.
setRequestHeader
(
'
Content-Type
'
,
'
application/json
'
);
xhttp
.
send
(
JSON
.
stringify
(
transcript
));
return
true
;
}
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment