     throw new Error("this method should not call direct, please call create method.")
 }
 `
-do(exports=@)=>
+do(exports=@)->
     class SlackApp
         constructor : (@team, @clientId, @clientSecret, @scopes,@option={})->
             @BASE_URI="https://slack.com"
             @API_ENDPOINT="#{@BASE_URI}/api/"
             @AUTH_ENDPOINT="#{@BASE_URI}/oauth/authorize"
             @prop = PropertiesService.getUserProperties()
-    
             @option.name = "" if !@option.name
             @prop.setProperty("SLACK_credencial#{@option.name}", JSON.stringify({"access_token" : @option.token})) if @option.token
-    
-    
         apiTest : (params={})=>
             @fetch_("api.test", params)
 


        chatPostMessage : (channelId, text , option={})=>
            @fetch_("chat.postMessage", _.extend({channel : channelId, text : text}, option))

        chatUpdate : (channelId, timestamp, text)=>
            @fetch_("chat.update", {channel : channelId, text : text, ts : timestamp})

                    code : code
            @prop.setProperty("SLACK_credencial#{@option.name}", res.getContentText())
            return JSON.parse(res.getContentText()).access_token
        getAuthorizeUrl : (callback,optArg) =>
            redirectUri = @getCallbackURL(callback, optArg)
            @prop.setProperty("SLACK_redirectURI#{@option.name}", redirectUri)
            "#{@AUTH_ENDPOINT}?client_id=#{@clientId}&scope=#{@scopes.join(',')}&response_type=code&redirect_uri=#{redirectUri}"
        getCallbackURL : (callback,optArg = {}) ->
            url = ScriptApp.getService().getUrl()
            if url.indexOf("/exec") >= 0
