angular.module("c8y.core").factory("c8ySMSGateway",["$http","$q","c8yAlert","c8ySettings",function(n,e,t,r){return{updateSMSGatewayInfo:function(e,t){return n.put("/service/register/messaging",{provider:"openit","openit.baseUrl":"https://sms.plusserver.com/put.php","sms.senderAddress":"cumulocity","sms.senderName":"cumulocity","openit.username":e,"credentials.openit.password":t})},getSMSGatewayUsername:function(){return r.detail({category:"messaging",key:"openit.username"})},deleteSMSGatewayCredentials:function(){return e.all([r.deleteOption({category:"messaging",key:"openit.username"}),r.deleteOption({category:"messaging",key:"credentials.openit.password"})]).then(function(e){return e})}}}]);