angular.module("mystrom.adapter.services",[]).factory("adapterService",["$q","$rootScope",function(e,c){function o(){return e(function(e,o){cordova.exec(function(o){console.log("Devices found:"),console.log(o),c.$broadcast("new_devices",o),s=o,e(o)},o,"mystrom","checkNewDevices",[])})}function r(){return e(function(e,c){console.log("startDeviceDiscovery"),cordova.exec(e,c,"mystrom","startDeviceDiscovery",[])})}function n(){return e(function(e,c){console.log("endDeviceDiscovery"),cordova.exec(e,c,"mystrom","endDeviceDiscovery",[])})}function i(){return e(function(e,c){console.log("clearDevices"),cordova.exec(e,c,"mystrom","clearDevices",[])})}var t,s;return{activationCode:t,checkNewDevices:o,startDeviceDiscovery:r,endDeviceDiscovery:n,clearDevices:i}}]);