var jsRoutes = {}; (function(_root){
var _nS = function(c,f,b){var e=c.split(f||"."),g=b||_root,d,a;for(d=0,a=e.length;d<a;d++){g=g[e[d]]=g[e[d]]||{}}return g}
var _qS = function(items){var qs = ''; for(var i=0;i<items.length;i++) {if(items[i]) qs += (qs ? '&' : '') + items[i]}; return qs ? ('?' + qs) : ''}
var _s = function(p,s){return p+((s===true||(s&&s.secure))?'s':'')+'://'}
var _wA = function(r){return {ajax:function(c){c=c||{};c.url=r.url;c.type=r.method;return jQuery.ajax(c)}, method:r.method,type:r.method,url:r.url,absoluteURL: function(s){return _s('http',s)+'ecf.org.il'+r.url},webSocketURL: function(s){return _s('ws',s)+'ecf.org.il'+r.url}}}
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['importLayer'] = 
        function() {
          return _wA({method:"POST", url:"/" + "backOffice/layers/"})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['showLayer'] = 
        function(layerId0,reason1) {
          return _wA({method:"GET", url:"/" + "backOffice/layers/" + encodeURIComponent((function(k,v) {return v})("layerId", layerId0)) + _qS([(function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("reason", reason1)])})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['deleteLayer'] = 
        function(layerId0) {
          return _wA({method:"DELETE", url:"/" + "backOffice/layers/" + encodeURIComponent((function(k,v) {return v})("layerId", layerId0))})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['listLayers'] = 
        function(name0,tags1,page2) {
          return _wA({method:"GET", url:"/" + "backOffice/layers/" + _qS([(name0 == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("name", name0)), (tags1 == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("tags", tags1)), (page2 == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("page", page2))])})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['getLayerJson'] = 
        function(layerId0) {
          return _wA({method:"GET", url:"/" + "api/layers/" + encodeURIComponent((function(k,v) {return v})("layerId", layerId0))})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['persistLayer'] = 
        function(layerId0) {
          return _wA({method:"PUT", url:"/" + "backOffice/layers/" + encodeURIComponent((function(k,v) {return v})("layerId", layerId0))})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['layerFieldList'] = 
        function(layerId0) {
          return _wA({method:"GET", url:"/" + "backOffice/layers/" + encodeURIComponent((function(k,v) {return v})("layerId", layerId0)) + "/featureMetadataFields"})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['duplicateLayer'] = 
        function(layerId0) {
          return _wA({method:"POST", url:"/" + "backOffice/layers/" + encodeURIComponent((function(k,v) {return v})("layerId", layerId0)) + "/duplicate"})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['listTags'] = 
        function() {
          return _wA({method:"GET", url:"/" + "api/layers/tags"})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['apiListLayers'] = 
        function(name0) {
          return _wA({method:"GET", url:"/" + "api/layers/" + _qS([(function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("name", name0)])})
        }
      ;
_nS('controllers.LayersCtrl'); _root['controllers']['LayersCtrl']['deleteLayer'] = 
        function(layerId0) {
          return _wA({method:"DELETE", url:"/" + "backOffice/layers/" + encodeURIComponent((function(k,v) {return v})("layerId", layerId0))})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['createMap'] = 
        function() {
          return _wA({method:"POST", url:"/" + "backOffice/maps/"})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['updateMap'] = 
        function(mapId0) {
          return _wA({method:"PUT", url:"/" + "backOffice/maps/" + encodeURIComponent((function(k,v) {return v})("mapId", mapId0))})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['duplicateMap'] = 
        function(mapId0) {
          return _wA({method:"POST", url:"/" + "backOffice/maps/" + encodeURIComponent((function(k,v) {return v})("mapId", mapId0)) + "/duplicate"})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['mapViewer'] = 
        function(mapId0,options1) {
          return _wA({method:"GET", url:"/" + "maps/" + encodeURIComponent((function(k,v) {return v})("mapId", mapId0)) + _qS([(options1 == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("options", options1))])})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['deleteGeoMap'] = 
        function(mapId0) {
          return _wA({method:"DELETE", url:"/" + "backOffice/maps/" + encodeURIComponent((function(k,v) {return v})("mapId", mapId0))})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['listMaps'] = 
        function(name0,tags1,page2) {
          return _wA({method:"GET", url:"/" + "maps/search" + _qS([(function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("name", name0), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("tags", tags1), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("page", page2)])})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['backEndListMaps'] = 
        function(name0,tags1,page2) {
          return _wA({method:"GET", url:"/" + "backOffice/maps/" + _qS([(function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("name", name0), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("tags", tags1), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("page", page2)])})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['listMapTags'] = 
        function() {
          return _wA({method:"GET", url:"/" + "api/maps/tags"})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['getTagsAndCountsGrouped'] = 
        function() {
          return _wA({method:"GET", url:"/" + "api/maps/tagsGrouped"})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['getMapData'] = 
        function(mapId0) {
          return _wA({method:"GET", url:"/" + "api/geomaps/" + encodeURIComponent((function(k,v) {return v})("mapId", mapId0)) + "/metadata"})
        }
      ;
_nS('controllers.GeoMapsCtrl'); _root['controllers']['GeoMapsCtrl']['printMapViewer'] = 
        function(mapId0,baseLayer1,visibleLayers2,zoomLevel3,centerLat4,centerLng5) {
          return _wA({method:"GET", url:"/" + "prints/maps/" + encodeURIComponent((function(k,v) {return v})("mapId", mapId0)) + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("baseLayer", baseLayer1), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("visibleLayers", visibleLayers2), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("zoomLevel", zoomLevel3), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("centerLat", centerLat4), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("centerLng", centerLng5)])})
        }
      ;
_nS('controllers.TermCtrl'); _root['controllers']['TermCtrl']['listTerms'] = 
        function(name0,topicIds1,categoryIds2,sortBy3,tags4,page5) {
          return _wA({method:"GET", url:"/" + "issues/listIssues" + _qS([(function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("name", name0), (function(k,v){return v!=null?(function(k,vs){var l=vs&&vs.length,r=[],i=0;for(;i<l;i++){r[i]=(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,vs[i])}return r.join('&')})(k,v):''})("topicIds", topicIds1), (function(k,v){return v!=null?(function(k,vs){var l=vs&&vs.length,r=[],i=0;for(;i<l;i++){r[i]=(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,vs[i])}return r.join('&')})(k,v):''})("categoryIds", categoryIds2), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("sortBy", sortBy3), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("tags", tags4), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("page", page5)])})
        }
      ;
_nS('controllers.TermCtrl'); _root['controllers']['TermCtrl']['listTermTags'] = 
        function() {
          return _wA({method:"GET", url:"/" + "api/issues/tags"})
        }
      ;
_nS('controllers.TermCtrl'); _root['controllers']['TermCtrl']['listTermTagsGrouped'] = 
        function() {
          return _wA({method:"GET", url:"/" + "api/issues/tagGroups"})
        }
      ;
_nS('controllers.TermCtrl'); _root['controllers']['TermCtrl']['apiListTerms'] = 
        function(name0) {
          return _wA({method:"GET", url:"/" + "api/terms/search/" + encodeURIComponent((function(k,v) {return v})("name", name0))})
        }
      ;
_nS('controllers.TermCtrl'); _root['controllers']['TermCtrl']['apiGetTerms'] = 
        function(idList0) {
          return _wA({method:"GET", url:"/" + "api/terms/ids/" + encodeURIComponent((function(k,v) {return v})("idList", idList0))})
        }
      ;
_nS('controllers.TermCtrl'); _root['controllers']['TermCtrl']['showTerm'] = 
        function(id0) {
          return _wA({method:"GET", url:"/" + "issues/issue/" + encodeURIComponent((function(k,v) {return v})("id", id0))})
        }
      ;
_nS('controllers.KmlCtrl'); _root['controllers']['KmlCtrl']['removeFile'] = 
        function(fileId0) {
          return _wA({method:"DELETE", url:"/" + "backOffice/import/kmz/files/" + encodeURIComponent((function(k,v) {return v})("fileId", fileId0))})
        }
      ;
_nS('controllers.FinancialReportsCtrl'); _root['controllers']['FinancialReportsCtrl']['delete'] = 
        function(reportId0) {
          return _wA({method:"DELETE", url:"/" + "backOffice/financialReports/" + encodeURIComponent((function(k,v) {return v})("reportId", reportId0))})
        }
      ;
_nS('controllers.FinancialReportsCtrl'); _root['controllers']['FinancialReportsCtrl']['list'] = 
        function() {
          return _wA({method:"GET", url:"/" + "backOffice/financialReports/"})
        }
      ;
_nS('controllers.PersonalPageCtrl'); _root['controllers']['PersonalPageCtrl']['deletePersonalPage'] = 
        function(pageId0) {
          return _wA({method:"DELETE", url:"/" + "backOffice/personalPages/" + encodeURIComponent((function(k,v) {return v})("pageId", pageId0))})
        }
      ;
_nS('controllers.PublicationsCtrl'); _root['controllers']['PublicationsCtrl']['deletePublication'] = 
        function(id0,keepKids1) {
          return _wA({method:"DELETE", url:"/" + "backOffice/publications/" + encodeURIComponent((function(k,v) {return v})("id", id0)) + _qS([(function(k,v){return k+'='+(!!v)})("keepKids", keepKids1)])})
        }
      ;
_nS('controllers.PublicationsCtrl'); _root['controllers']['PublicationsCtrl']['organize'] = 
        function() {
          return _wA({method:"GET", url:"/" + "backOffice/publications/"})
        }
      ;
_nS('controllers.PublicationsCtrl'); _root['controllers']['PublicationsCtrl']['showFolder'] = 
        function(id0) {
          return _wA({method:"GET", url:"/" + "backOffice/publications/folder/" + encodeURIComponent((function(k,v) {return v})("id", id0)) + "/"})
        }
      ;
_nS('controllers.UsersCtrl'); _root['controllers']['UsersCtrl']['updatePass'] = 
        function(userId0) {
          return _wA({method:"PUT", url:"/" + "backOffice/users/" + encodeURIComponent((function(k,v) {return v})("userId", userId0)) + "/pass"})
        }
      ;
_nS('controllers.UsersCtrl'); _root['controllers']['UsersCtrl']['updateUserData'] = 
        function(userId0) {
          return _wA({method:"PUT", url:"/" + "backOffice/users/" + encodeURIComponent((function(k,v) {return v})("userId", userId0)) + "/data"})
        }
      ;
_nS('controllers.UsersCtrl'); _root['controllers']['UsersCtrl']['updateAdminStatus'] = 
        function(userId0) {
          return _wA({method:"PUT", url:"/" + "backOffice/users/" + encodeURIComponent((function(k,v) {return v})("userId", userId0)) + "/isAdmin"})
        }
      ;
_nS('controllers.UsersCtrl'); _root['controllers']['UsersCtrl']['deleteUser'] = 
        function(userId0) {
          return _wA({method:"DELETE", url:"/" + "backOffice/users/" + encodeURIComponent((function(k,v) {return v})("userId", userId0))})
        }
      ;
_nS('controllers.UsersCtrl'); _root['controllers']['UsersCtrl']['createNewUser'] = 
        function() {
          return _wA({method:"POST", url:"/" + "backOffice/users/"})
        }
      ;
_nS('controllers.UsersCtrl'); _root['controllers']['UsersCtrl']['listUsers'] = 
        function() {
          return _wA({method:"GET", url:"/" + "backOffice/users/"})
        }
      ;
_nS('controllers.BackgroundImagesCtrl'); _root['controllers']['BackgroundImagesCtrl']['deleteImage'] = 
        function(id0) {
          return _wA({method:"DELETE", url:"/" + "backOffice/backgrounds/" + encodeURIComponent((function(k,v) {return v})("id", id0))})
        }
      ;
_nS('controllers.BackgroundImagesCtrl'); _root['controllers']['BackgroundImagesCtrl']['listImages'] = 
        function() {
          return _wA({method:"GET", url:"/" + "api/backgroundImages/"})
        }
      ;
_nS('controllers.BackgroundImagesCtrl'); _root['controllers']['BackgroundImagesCtrl']['apiSetFrontEndImage'] = 
        function() {
          return _wA({method:"PUT", url:"/" + "api/backgrounds/frontEndBkg"})
        }
      ;
_nS('controllers.BackgroundImagesCtrl'); _root['controllers']['BackgroundImagesCtrl']['apiGetFrontEndImage'] = 
        function() {
          return _wA({method:"GET", url:"/" + "api/backgrounds/frontEndBkg"})
        }
      ;
})(jsRoutes)