cordova.define("cordova/plugin/deviceInfo",function(c,b,d){var a;if(window.PalmSystem){console.log("Window.PalmSystem Available");a=c("cordova/plugin/webos/service")}else{a={Request:function(g,h){console.log(g+" invoked. But I am a dummy because PalmSystem is not available");if(typeof h.onFailure==="function"){h.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var f=function(){};function e(g){}f.prototype.getNetworkInfo=function(g,h){e("getNetworkInfo: ");a.Request("luna://com.palm.connectionmanager",{method:"getstatus",parameters:{},onSuccess:function(i){e("getNetworkInfo: onSuccess");delete i.returnValue;g&&g(i)},onFailure:function(i){e("getNetworkInfo: onFailure");delete i.returnValue;h&&h(i)}});e("DeviceInfo.getNetworkInfo Done")};f.prototype.getNetworkMacInfo=function(g,h){e("getNetworkMacInfo: ");a.Request("luna://com.webos.service.tv.signage",{method:"getinfo",parameters:{},onSuccess:function(i){e("getNetworkMacInfo: onSuccess");delete i.returnValue;g&&g(i)},onFailure:function(i){e("getNetworkMacInfo: onFailure");delete i.returnValue;h&&h(i)}});e("DeviceInfo.getNetworkMacInfo Done")};f.prototype.getPlatformInfo=function(g,h){e("getPlatformInfo: ");a.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName","serialNumber","firmwareVersion","hardwareVersion","sdkVersion"]},onSuccess:function(i){e("getPlatformInfo: onSuccess");i.manufacturer="LGE";i.sdkVersion="1.2.21391";delete i.returnValue;delete i.errorText;g&&g(i)},onFailure:function(i){e("getPlatformInfo: onFailure");delete i.returnValue;h&&h(i)}});e("DeviceInfo.getPlatformInfo Done")};f.prototype.getSystemUsageInfo=function(g,h,i){e("getSystemUsageInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getSystemUsageInfo",parameters:{cpus:i.cpus,memory:i.memory},onSuccess:function(j){if(j.returnValue===true){var k={};if(typeof j.memory!=="undefined"){k.memory=j.memory}if(typeof j.cpus!=="undefined"){k.cpus=j.cpus}g(k)}else{h({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){h({errorCode:j.errorCode,errorText:j.errorText})}});e("DeviceInfo.getSystemUsageInfo Done")};d.exports=f});DeviceInfo=cordova.require("cordova/plugin/deviceInfo");