From d78ebab108942058a100e0f607771c4addafb698 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Tue, 7 Jul 2015 09:16:13 -0400
Subject: Implemention of slack import feature.

---
 web/react/utils/client.jsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'web/react/utils/client.jsx')

diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index da0b74081..f4c72ba46 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -862,6 +862,22 @@ module.exports.uploadProfileImage = function(imageData, success, error) {
     });
 };
 
+module.exports.importSlack = function(fileData, success, error) {
+    $.ajax({
+		url: "/api/v1/teams/import_team",
+        type: 'POST',
+        data: fileData,
+        cache: false,
+        contentType: false,
+        processData: false,
+        success: success,
+        error: function(xhr, status, err) {
+            e = handleError("importTeam", xhr, status, err);
+            error(e);
+        }
+    });
+}
+
 module.exports.getStatuses = function(success, error) {
     $.ajax({
         url: "/api/v1/users/status",
-- 
cgit v1.2.3-1-g7c22

