var jsRouter = {}; (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)+'greensnap.jp'+r.url},webSocketURL: function(s){return _s('ws',s)+'greensnap.jp'+r.url}}}
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.getLoginStatus = 
      function() {
      return _wA({method:"GET", url:"/" + "getLoginStatus"})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.addLike = 
      function(postId) {
      return _wA({method:"POST", url:"/" + "addLike" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.addLikeV2 = 
      function(postId) {
      return _wA({method:"POST", url:"/" + "addLikeV2" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.removeLike = 
      function(postId) {
      return _wA({method:"POST", url:"/" + "removeLike" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.removeLikeV2 = 
      function(postId) {
      return _wA({method:"POST", url:"/" + "removeLikeV2" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.getLikeUsers = 
      function(postId,limit) {
      return _wA({method:"GET", url:"/" + "getLikeUsers" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("limit", limit)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.getLikeUsersV2 = 
      function(postId) {
      return _wA({method:"GET", url:"/" + "getLikeUsersV2" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.addComment = 
      function() {
      return _wA({method:"POST", url:"/" + "addComment"})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.addCommentLike = 
      function(commentId) {
      return _wA({method:"POST", url:"/" + "addCommentLike" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("commentId", commentId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.addCommentLikeV2 = 
      function(commentId,commentUserId,commentUserName,commentLikeUserId) {
      return _wA({method:"POST", url:"/" + "addCommentLikeV2" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("commentId", commentId), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("commentUserId", commentUserId), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("commentUserName", commentUserName), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("commentLikeUserId", commentLikeUserId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.clip = 
      function(postId) {
      return _wA({method:"POST", url:"/" + "clip" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.clipGreenBlog = 
      function(greenBlogId) {
      return _wA({method:"POST", url:"/" + "clipGreenBlog" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("greenBlogId", greenBlogId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.getComments = 
      function(postId) {
      return _wA({method:"GET", url:"/" + "getComments" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.isFollow = 
      function(followType,targetId) {
      return _wA({method:"POST", url:"/" + "isFollow" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("followType", followType), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("targetId", targetId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.follow = 
      function(followType,targetId) {
      return _wA({method:"POST", url:"/" + "follow" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("followType", followType), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("targetId", targetId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.incrementalSearch = 
      function(term,tagType) {
      return _wA({method:"GET", url:"/" + "incrementalSearch" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("term", term), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("tagType", tagType)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.suggestTag = 
      function(postId,postTagsId,newTagId) {
      return _wA({method:"POST", url:"/" + "suggestTag" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postId", postId), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postTagsId", postTagsId), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("newTagId", newTagId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.approveTag = 
      function(tagSuggestionId,status) {
      return _wA({method:"POST", url:"/" + "approveTag" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("tagSuggestionId", tagSuggestionId), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("status", status)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.voteAnswers = 
      function(postTagsId,tagId,userId) {
      return _wA({method:"POST", url:"/" + "voteAnswers" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("postTagsId", postTagsId), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("tagId", tagId), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.createNewTag = 
      function(tagType,tagName) {
      return _wA({method:"POST", url:"/" + "createNewTag" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("tagType", tagType), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("tagName", tagName)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.getMunicipalities = 
      function(prefId) {
      return _wA({method:"GET", url:"/" + "getMunicipalities" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("prefId", prefId)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.getNotifications = 
      function(currentPage,limit,responseType) {
      return _wA({method:"GET", url:"/" + "getNotifications" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage), (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("limit", limit), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("responseType", responseType)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.getNotificationUnreadCount = 
      function() {
      return _wA({method:"GET", url:"/" + "getNotificationUnreadCount"})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.readNotification = 
      function() {
      return _wA({method:"POST", url:"/" + "readNotification"})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.logActive = 
      function() {
      return _wA({method:"POST", url:"/" + "logActive"})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.incrementalPictureBookSearch = 
      function(term) {
      return _wA({method:"GET", url:"/" + "incrementalPictureBookSearch" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("term", term)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.addOrRemoveFavoriteRetail = 
      function(userId,retail) {
      return _wA({method:"POST", url:"/" + "favorite-retail" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("retail", retail)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.researchStoreRetails = 
      function(latitude,longitude,retailId,jfcode) {
      return _wA({method:"GET", url:"/" + "researchStoreRetails" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("latitude", latitude), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("longitude", longitude), (retailId == null ? null : (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("retailId", retailId)), (jfcode == null ? null : (function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("jfcode", jfcode))])})
      }
   
_nS('controllers.Post'); _root.controllers.Post.getFreeTagTemplate = 
      function(id,label) {
      return _wA({method:"GET", url:"/" + "getFreeTagTemplate" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("id", id), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("label", label)])})
      }
   
_nS('controllers.Post'); _root.controllers.Post.getPlantTagTemplate = 
      function(id,label,top,left,width,height,timestamp) {
      return _wA({method:"GET", url:"/" + "getPlantTagTemplate" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("id", id), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("label", label), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("top", top), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("left", left), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("width", width), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("height", height), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("timestamp", timestamp)])})
      }
   
_nS('controllers.Post'); _root.controllers.Post.getPlantTagAreaTemplate = 
      function(id,label,imageWidth,imageHeight,top,left,width,height,timestamp) {
      return _wA({method:"GET", url:"/" + "getPlantTagAreaTemplate" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("id", id), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("label", label), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("imageWidth", imageWidth), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("imageHeight", imageHeight), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("top", top), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("left", left), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("width", width), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("height", height), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("timestamp", timestamp)])})
      }
   
_nS('controllers.Post'); _root.controllers.Post.send = 
      function() {
      return _wA({method:"POST", url:"/" + "post"})
      }
   
_nS('controllers.PostList'); _root.controllers.PostList.searchAsync = 
      function(ids,tid,currentPage) {
      return _wA({method:"GET", url:"/" + "searchAsync" + _qS([(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('&')})("ids", ids), (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("tid", tid), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.PostList'); _root.controllers.PostList.countAsync = 
      function(ids) {
      return _wA({method:"GET", url:"/" + "countAsync" + _qS([(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('&')})("ids", ids)])})
      }
   
_nS('controllers.Timeline'); _root.controllers.Timeline.searchAsync = 
      function(currentPage,lastPostId) {
      return _wA({method:"GET", url:"/" + "getTimeline" + _qS([(currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage)), (lastPostId == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("lastPostId", lastPostId))])})
      }
   
_nS('controllers.NewArrival'); _root.controllers.NewArrival.searchAsync = 
      function(currentPage) {
      return _wA({method:"GET", url:"/" + "getNewArrival" + _qS([(currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.PopularUser'); _root.controllers.PopularUser.searchAsync = 
      function(currentPage) {
      return _wA({method:"GET", url:"/" + "getPopularUser" + _qS([(currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.PopularPost'); _root.controllers.PopularPost.searchAsync = 
      function(currentPage) {
      return _wA({method:"GET", url:"/" + "getPopularPost" + _qS([(currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.Profile'); _root.controllers.Profile.getProfilePosts = 
      function(userId,currentPage) {
      return _wA({method:"GET", url:"/" + "getProfilePosts" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.Profile'); _root.controllers.Profile.getProfileClips = 
      function(userId,currentPage) {
      return _wA({method:"GET", url:"/" + "getProfileClips" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.Profile'); _root.controllers.Profile.getProfileGreenBlogs = 
      function(userId,currentPage) {
      return _wA({method:"GET", url:"/" + "getProfileGreenBlogs" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.Profile'); _root.controllers.Profile.getProfileTags = 
      function(userId,currentPage) {
      return _wA({method:"GET", url:"/" + "getProfileTags" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.Profile'); _root.controllers.Profile.getProfileFollowUsers = 
      function(userId,currentPage) {
      return _wA({method:"GET", url:"/" + "getProfileFollowUsers" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.Profile'); _root.controllers.Profile.getProfileFollowTags = 
      function(userId,currentPage) {
      return _wA({method:"GET", url:"/" + "getProfileFollowTags" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.Profile'); _root.controllers.Profile.getProfileFollowers = 
      function(userId,currentPage) {
      return _wA({method:"GET", url:"/" + "getProfileFollowers" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.Profile'); _root.controllers.Profile.getProfileShopDetail = 
      function(userId,currentPage) {
      return _wA({method:"GET", url:"/" + "getProfileShopDetail" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("userId", userId), (currentPage == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("currentPage", currentPage))])})
      }
   
_nS('controllers.PostDetail'); _root.controllers.PostDetail.delete = 
      function(id) {
      return _wA({method:"POST", url:"/" + "post/delete" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("id", id)])})
      }
   
_nS('controllers.CommonAPI'); _root.controllers.CommonAPI.addBlogLike = 
      function(blogId) {
      return _wA({method:"POST", url:"/" + "addBlogLike" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("blogId", blogId)])})
      }
   
_nS('controllers.manager.Blog'); _root.controllers.manager.Blog.getCategoryMiddles = 
      function(largeId) {
      return _wA({method:"GET", url:"/manager/" + "blog/getMiddles" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("largeId", largeId)])})
      }
   
_nS('controllers.manager.Blog'); _root.controllers.manager.Blog.getCategorySmalls = 
      function(middleId) {
      return _wA({method:"GET", url:"/manager/" + "blog/getSmalls" + _qS([(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("middleId", middleId)])})
      }
   
_nS('controllers.Page'); _root.controllers.Page.pageImage = 
      function(id,paging) {
      return _wA({method:"GET", url:"/" + "pageImage/" + (function(k,v) {return v})("id", id) + _qS([(paging == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("paging", paging))])})
      }
   
_nS('controllers.Page'); _root.controllers.Page.blogImage = 
      function(id,paging) {
      return _wA({method:"GET", url:"/" + "blogImage/" + (function(k,v) {return v})("id", id) + _qS([(paging == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("paging", paging))])})
      }
   
_nS('controllers.Page'); _root.controllers.Page.questionImage = 
      function(id,lastQuestionId,paging) {
      return _wA({method:"GET", url:"/" + "questionImage/" + (function(k,v) {return v})("id", id) + _qS([(function(k,v){return v!=null?(function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})(k,v):''})("lastQuestionId", lastQuestionId), (paging == null ? null : (function(k,v) {return encodeURIComponent(k)+'='+encodeURIComponent(v)})("paging", paging))])})
      }
   
_nS('controllers.auth.TwitterAuth'); _root.controllers.auth.TwitterAuth.unlink = 
      function() {
      return _wA({method:"GET", url:"/" + "auth/twUnlink"})
      }
   
_nS('controllers.auth.TwitterAuth'); _root.controllers.auth.TwitterAuth.twRedirect = 
      function() {
      return _wA({method:"GET", url:"/" + "auth/twRedirect"})
      }
   
_nS('controllers.auth.TwitterAuth'); _root.controllers.auth.TwitterAuth.pcTwAuth = 
      function() {
      return _wA({method:"GET", url:"/" + "auth/pcTwAuth"})
      }
   
_nS('controllers.UnauthorisedAPI'); _root.controllers.UnauthorisedAPI.updateEmailReceiveSetting = 
      function() {
      return _wA({method:"POST", url:"/" + "account/verifyEmail/submitEmailReceiveSetting"})
      }
   
})(jsRouter)
          