import { transformItem as transformQti2 }  from "../qti2/qti";


export function transformItem(item) {
  var qti = transformQti2(item.xml);
  let question_type = item.question_type

  switch(item.json.genusTypeId) {
    case "question-type%3Aqti-order-interaction-mw-sentence%40ODL.MIT.EDU" :
      question_type = "movable_words_sentence";
      break;
    case "question-type%3Aqti-order-interaction-mw-sandbox%40ODL.MIT.EDU" :
      question_type = "movable_words_sandbox";
      break;
    case "question-type%3Aqti-order-interaction-object-manipulation%40ODL.MIT.EDU" :
      question_type = "movable_object_chain";
      break;
  }

  return _.merge({}, qti, { title: item.title, question_type });
};

@@ -175,16 +175,28 @@
 n_type%0A%0A
+  debugger;%0A
   switch
@@ -639,16 +639,148 @@
  break;%0A
+    case %22question-type%253Aqti-upload-interaction-generic%2540ODL.MIT.EDU%22:%0A      question_type = %22file_upload_question%22;%0A      break;%0A
   %7D%0A%0A  r

add file upload question to clix transform item