       label: "Response " + (Flow.flow.rule_sets.length + 1)
       operand: "@step.value"
       webhook_action: null,
-      ruleset_type: if window.ivr then 'wait_digit' else 'wait_message',
+      ruleset_type: $rootScope.defaultRuleSetType(),
       rules: [
         test:
           test: "true"

            label: "Response " + (Flow.flow.rule_sets.length + 1)
            operand: "@step.value"
            webhook_action: null,
            ruleset_type: if window.ivr then 'wait_digit' else 'wait_message',
            rules: [
              test:
                test: "true"

      return false
    return true

  $rootScope.defaultRuleSetType = ->
    if window.ivr
      rulesetType = 'wait_digit'
    else if window.ussd
      rulesetType = 'wait_ussd'
    else
      rulesetType = 'wait_message'

  $scope.onConnectorDrop = (connection) ->

    $(connection.sourceId).parent().removeClass('reconnecting')
