var serviceLayer=function(){var e=this;e.getResponse=function(e){return toString(e)},e.init()};serviceLayer.prototype.init=function(){console.log("Service Layer active")},serviceLayer.prototype.Post=function(e,t,r,n){var o=this;$.ajax({url:e,dataType:"json",data:t,method:"POST",success:function(e){return _utility.exists(r)?r(e):e},error:function(e){return o.getResponse(n)}})},serviceLayer.prototype.Get=function(e,t,r,n){var o=this;$.ajax({url:e,data:t,dataType:"json",method:"GET",success:function(e){return _utility.exists(r)?r(e):e},error:function(e){return o.getResponse(n)}})},serviceLayer.prototype.sendImage=function(e,t,r){var n=new FormData;n.append("f","img"),n.append("img_file",e),$.ajax({data:n,type:"POST",url:t,cache:!1,contentType:!1,processData:!1,success:function(e){return _utility.exists($callback)?$callback(e):e},error:function(e,t,r){console.log(t+" "+r)}})};