 (ns pc.http.sente
-  (:require [clj-statsd :as statsd]
+  (:require [clj-http.client :as http]
+            [clj-statsd :as statsd]
             [clj-time.core :as time]
             [clojure.core.async :as async]
             [clojure.core.memoize :as memo]


      (notify-invite "Please sign up to send an invite."))))

(defmethod ws-handler :frontend/change-privacy [{:keys [client-id ?data ?reply-fn] :as req}]
  (check-document-access (-> ?data :document/id) req :owner)
  (let [doc-id (-> ?data :document/id)

            [pc.email :as email]
            [pc.http.datomic2 :as datomic2]
            [pc.http.datomic.common :as datomic-common]
            [pc.http.urls :as urls]
            [pc.models.access-grant :as access-grant-model]
            [pc.models.access-request :as access-request-model]
            [pc.models.chat :as chat]
            [pc.models.cust :as cust]
            [pc.models.doc :as doc-model]
            [pc.models.layer :as layer-model]
            [pc.models.permission :as permission-model]
            [pc.models.team :as team-model]
            [pc.replay :as replay]
            [pc.rollbar :as rollbar]
            [pc.sms :as sms]
            [pc.utils :as utils]
            [slingshot.slingshot :refer (try+ throw+)]
            [taoensso.sente :as sente]
