angular.module("mystrom.tilemanagement.services",[]).factory("tileManagementService",["$q","$translate","$ionicPopup","$timeout",function(t,e,o,n){var c=function(e){return t(function(t,o){try{cordova.exec(t,o,"mystrom","getSwitchHomescreenShortcut",[e])}catch(n){t(!1)}})},i=function(e,o){return t(function(t,n){try{cordova.exec(t,n,"mystrom","setSwitchHomescreenShortcut",[e,o])}catch(c){t()}})},r=function(){$("body").removeClass("backdrop-solid"),e(["SettingsNotAvailableTitle","SettingsNotAvailableText","OK"]).then(function(t){o.alert({title:t.SettingsNotAvailableTitle+"<br><br>"+t.SettingsNotAvailableText,cssClass:"custom-popup",okText:t.OK}).then(function(){n(function(){$("body").addClass("backdrop-solid")},500)})})};return{getSwitchHomescreenShortcut:c,setSwitchHomescreenShortcut:i,showNoSettingsAvailable:r}}]);