(function(){"use strict";u8.Mobile.Application.registerAction("createandcall",function(c){t(c);u8.application.execute("close");e(c.phoneNumber)});u8.Mobile.Application.registerAction("call",function(t){e(t.phoneNumber)});function e(e){e=(e||"").replace(/ /g,"");u8.application.execute({name:"openurl",url:"tel:"+encodeURIComponent(e)})}function t(e){u8.rest({url:"~/call/createcallrecord",method:"post",headers:{Accept:"application/json,text/html"},data:{uid:e.uid,templateName:e.templateName,fieldIds:e.fieldIds}})}})();