|
|
@ -28,6 +28,11 @@ module.exports = function (params, processor) { |
|
|
|
var report = JSON.parse(result); |
|
|
|
var report = JSON.parse(result); |
|
|
|
var messages = report.Messages; |
|
|
|
var messages = report.Messages; |
|
|
|
for (var i = 0; i < messages.length; i++) { |
|
|
|
for (var i = 0; i < messages.length; i++) { |
|
|
|
|
|
|
|
if (!messages[i]) { |
|
|
|
|
|
|
|
processor.onError("Message is null"); |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
switch(messages[i].Type) { |
|
|
|
switch(messages[i].Type) { |
|
|
|
case "info": |
|
|
|
case "info": |
|
|
|
processor.onInfo(messages[i].Body); |
|
|
|
processor.onInfo(messages[i].Body); |
|
|
|