Led=(function(){var d,a;function c(e){}if(typeof window==="object"){cordova.define("cordova/plugin/led",function(f,e,g){d=function(){};if(window.PalmSystem){c("Window.PalmSystem Available");a=f("cordova/plugin/webos/service")}else{c("Window.PalmSystem is NOT Available");a={Request:function(h,i){c(h+" invoked. But I am a dummy because PalmSystem is not available");if(typeof i.onFailure==="function"){i.onFailure({returnValue:false,errorCode:"CORDOVA_ERR",errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}g.exports=d});d=cordova.require("cordova/plugin/led")}function b(f,g,e){if(f.errorCode===undefined||f.errorCode===null){f.errorCode=g}if(f.errorText===undefined||f.errorText===null){f.errorText=e}}d.prototype.getSystemControllerId=function(e,f){c("getSystemControllerId ");a.Request("luna://com.webos.service.commercial.scapadapter/led",{method:"getSystemControllerId",onSuccess:function(g){if(g.returnValue===true){delete g.returnValue;e(g)}},onFailure:function(g){delete g.returnValue;if(typeof f==="function"){b(g,"SGSS","Led.getSystemControllerId returns failure.");f(g)}}});c("Led.getSystemControllerId Done")};d.prototype.getSystemControllerDuplexInfo=function(e,f,g){c("getSystemControllerDuplexInfo ");a.Request("luna://com.webos.service.commercial.scapadapter/led",{method:"getSystemControllerDuplexInfo",parameters:g,onSuccess:function(h){if(h.returnValue===true){delete h.returnValue;e(h)}},onFailure:function(h){delete h.returnValue;if(typeof f==="function"){b(h,"SGSS","Led.getSystemControllerDuplexInfo returns failure.");f(h)}}});c("Led.getSystemControllerDuplexInfo Done")};d.prototype.getPitchInfo=function(e,f,g){c("getPitchInfo ");a.Request("luna://com.webos.service.commercial.scapadapter/led",{method:"getPitchInfo",parameters:g,onSuccess:function(h){if(h.returnValue===true){delete h.returnValue;e(h)}},onFailure:function(h){delete h.returnValue;if(typeof f==="function"){b(h,"SGSS","Led.getPitchInfo returns failure.");f(h)}}});c("Led.getPitchInfo Done")};d.prototype.getSystemControllerStatus=function(e,f,g){c("getSytemControllerStatus ");a.Request("luna://com.webos.service.commercial.scapadapter/led",{method:"getSystemControllerStatus",parameters:g,onSuccess:function(h){if(h.returnValue===true){delete h.returnValue;e(h)}},onFailure:function(h){delete h.returnValue;if(typeof f==="function"){b(h,"SGSS","Led.getSystemControllerStatus returns failure.");f(h)}}});c("Led.getSytemControllerStatus Done")};d.prototype.getLedControllerStatus=function(e,f,g){c("getLedControllerStatus ");a.Request("luna://com.webos.service.commercial.scapadapter/led",{method:"getLedControllerStatus",parameters:g,onSuccess:function(h){if(h.returnValue===true){delete h.returnValue;e(h)}},onFailure:function(h){delete h.returnValue;if(typeof f==="function"){b(h,"SGSS","Led.getLedControllerStatus returns failure.");f(h)}}});c("Led.getLedControllerStatus Done")};d.prototype.getSystemControllerEthernetLinkStatus=function(e,f){c("getSystemControllerEthernetLinkStatus ");a.Request("luna://com.webos.service.commercial.scapadapter/led",{method:"getSystemControllerEthernetLinkStatus",parameters:{},onSuccess:function(g){if(g.returnValue===true){delete g.returnValue;e(g)}},onFailure:function(g){delete g.returnValue;if(typeof f==="function"){b(g,"SGSS","Led.getSystemControllerEthernetLinkStatus returns failure.");f(g)}}});c("Led.getSystemControllerEthernetLinkStatus Done")};d.prototype.getFPGAVersion=function(e,f,g){c("getFPGAVersion ");a.Request("luna://com.webos.service.commercial.scapadapter/led",{method:"getFPGAVersion",parameters:g,onSuccess:function(h){if(h.returnValue===true){delete h.returnValue;e(h)}},onFailure:function(h){delete h.returnValue;if(typeof f==="function"){b(h,"SGSS","Led.getFPGAVersion returns failure.");f(h)}}});c("Led.getFPGAVersion Done")};return d}());