 
   @instance Application.get_env(:admin, :instance, "jd")
   @deployed_url Application.get_env(:admin, :deployed_url, "localhost:4000")
+
+  intercept ["event"]
 
   def join("events", %{"organizer_token" => token}, socket) do
     case token |> URI.encode_www_form() |> Cipher.decrypt() do

      end
    end)
  end
end

defmodule Admin.EventsChannel do
  use Admin, :channel
  alias Admin.{Webhooks}
  alias Phoenix.Socket.Broadcast
  use Guardian.Channel
  alias Admin.{CheckoutAgent}
  import Guardian.Phoenix.Socket
