anchor.diff:              ,{<<"time_window_stop">>, ?TO_BIN(TimeWindowStop)}
               ,{<<"wdays">>, case Wdays of 'undefined' -> 'undefined'; _ -> lists:map(fun(Wday) -> ?TO_BIN(Wday) end, Wdays) end}
               ,{<<"days">>, case Days of 'undefined' -> 'undefined'; _ -> lists:map(fun(Day) -> ?TO_BIN(Day) end, [Days]) end}
  -            ,{<<"interval">>, ?TO_BIN(z_context:get_q("interval",Context))}
  -            ,{<<"cycle">>, ?TO_BIN(z_context:get_q("cycle",Context))}
  -            ,{<<"name">>, ?TO_BIN(z_context:get_q("name",Context))}
  -            ,{<<"type">>, ?TO_BIN(z_context:get_q("type",Context))}
  +            ,{<<"interval">>, z_context:get_q(interval,Context)}
  +            ,{<<"cycle">>, z_context:get_q(cycle,Context)}
  +            ,{<<"name">>, z_context:get_q(name,Context)}
  +            ,{<<"type">>, z_context:get_q(type,Context)}
               ,{<<"start_date">>, StartDate}
               ,{<<"id">>, ?TO_BIN(Id)}
               ,{<<"enabled">>, z_convert:to_atom(z_context:get_q("enabled",Context))}
  -            ,{<<"ordinal">>, ?TO_BIN(z_context:get_q("ordinal",Context))}
  -            ,{<<"month">>, ?TO_BIN(z_context:get_q("month",Context))}],
  +            ,{<<"ordinal">>, z_context:get_q(ordinal,Context)}
  +            ,{<<"month">>, z_context:get_q(month,Context)}],
       DataBag = ?MK_DATABAG(modkazoo_util:set_values(modkazoo_util:filter_empty(Props), modkazoo_util:new())),
       case Id of
           'undefined'->
  
positive.code: 
  kz_c2call(Context) ->
      Id = z_context:get_q("c2call_id",Context),
      Props = [{<<"name">>, ?TO_BIN(z_context:get_q("name", Context))}
              ,{<<"auth_required">>, modkazoo_util:on_to_true(z_context:get_q("auth_required", Context))}
              ,{<<"dial_first">>, ?TO_BIN(z_context:get_q("dial_first", Context))}
              ,{<<"extension">>, ?TO_BIN(z_context:get_q("extension", Context))}
              ,{<<"caller_id_number">>, ?TO_BIN(z_context:get_q("caller_id_number", Context))}
              ,{<<"outbound_callee_id_number">>, ?TO_BIN(z_context:get_q("caller_id_number", Context))}
              ,{<<"id">>, ?TO_BIN(Id)}],
      DataBag = ?MK_DATABAG(modkazoo_util:set_values(modkazoo_util:filter_empty(Props), modkazoo_util:new())),
      case Id of
  
negative.code:                 ,fun(J) -> modkazoo_util:set_value([<<"from">>], modkazoo_util:get_q_bin("from", Context), J) end
                  ,fun(J) -> modkazoo_util:set_value([<<"subject">>], modkazoo_util:get_q_bin("subject", Context), J) end
                  ,fun(J) -> modkazoo_util:set_value([<<"template_charset">>], <<"utf-8">>, J) end
                  ,fun(J) -> modkazoo_util:set_value(<<"plain">>, z_context:get_q(text_body, Context), J) end
                  ,fun(J) -> modkazoo_util:set_value(<<"html">>, base64:encode(z_context:get_q(html_body, Context)), J) end
                  ,fun(J) -> modkazoo_util:set_value(<<"user_type">>, modkazoo_util:get_q_bin("selected_user", Context), J) end
                  ,fun(J) when RecipientAccountId == 'undefined' -> J; (J) -> modkazoo_util:set_value(<<"recipient_id">>, RecipientAccountId, J) end
                 ],
  