(()=>{function e(s,t){function a(e,t){return{outboundSMSMessageRequest:{address:["tel:".concat(e.tracker.trackerPhoneNumber)],senderAddress:"tel:".concat(e.tracker.userPhoneNumber||""),outboundSMSTextMessage:{message:e.messages[t]}}}}function c(e){return t.sendSms(e)}return{startRegistration:function(e){return c(a(e,0))},finishRegistration:function(e){for(var t=[],r=1;r<(e.messages||[]).length;r++){var n=a(e,r);t.push(c(n))}return s.all(t)}}}e.$inject=["$q","c8yMessaging"],angular.module("c8y.tracking.trackerRegistration").factory("trackerRegistrationSvc",e),e.$inject=["$q","c8yMessaging"]})();