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/utils.jsx | 9 +++++++++
 1 file changed, 9 insertions(+)

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

diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 618cc1557..f0a343513 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -982,3 +982,12 @@ module.exports.getUserIdFromChannelName = function(channel) {
 
     return otherUserId;
 };
+
+module.exports.importSlack = function(file, success, error) {
+	formData = new FormData();
+	formData.append('file', file, file.name);
+	formData.append('filesize', file.size);
+    formData.append('importFrom', 'slack');
+
+	client.importSlack(formData, success, error);
+};
-- 
cgit v1.2.3-1-g7c22

