url(r"^compose/$", "compose_message", name="sms_compose_message"), url(r"^message_test/(?P<phone_number>\d+)/$", "message_test", name="message_test"), url(r"^api/send_sms/$", "api_send_sms", name="api_send_sms"), url(r"^history/$", "messaging", name="messaging"), url(r"^forwarding_rules/$", "list_forwarding_rules", name="list_forwarding_rules"), url(r"^add_forwarding_rule/$", "add_forwarding_rule", name="add_forwarding_rule"), url(r"^edit_forwarding_rule/(?P<forwarding_rule_id>[\w-]+)/$", "add_forwarding_rule", name="edit_forwarding_rule"), url( r"^delete_forwarding_rule/(?P<forwarding_rule_id>[\w-]+)/$", "delete_forwarding_rule", name="delete_forwarding_rule", ), url(r"^add_backend/(?P<backend_class_name>[\w-]+)/$", "add_domain_backend", name="add_domain_backend"), url( r"^add_gateway/(?P<backend_class_name>[\w-]+)/$", AddDomainGatewayView.as_view(), name=AddDomainGatewayView.urlname, ), url( r"^edit_backend/(?P<backend_class_name>[\w-]+)/(?P<backend_id>[\w-]+)/$", "add_domain_backend", name="edit_domain_backend", ), url( r"^edit_gateway/(?P<backend_class_name>[\w-]+)/(?P<backend_id>[\w-]+)/$", EditDomainGatewayView.as_view(), name=EditDomainGatewayView.urlname, ), url(r"^list_backends/$", "list_domain_backends", name="list_domain_backends"), url(r"^gateways/$", DomainSmsGatewayListView.as_view(), name=DomainSmsGatewayListView.urlname), url(r"^delete_backend/(?P<backend_id>[\w-]+)/$", "delete_domain_backend", name="delete_domain_backend"),
send_to_recipients, upload_sms_translations, ) from corehq.apps.smsbillables.dispatcher import SMSAdminInterfaceDispatcher from corehq.messaging.smsbackends.telerivet.urls import \ domain_specific as telerivet_urls urlpatterns = [ url(r'^$', default, name='sms_default'), url(r'^send_to_recipients/$', send_to_recipients, name='send_to_recipients'), url(r'^compose/$', ComposeMessageView.as_view(), name=ComposeMessageView.urlname), url(r'^message_test/(?P<phone_number>\d+)/$', TestSMSMessageView.as_view(), name=TestSMSMessageView.urlname), url(r'^api/send_sms/$', api_send_sms, name='api_send_sms'), url(r'^add_gateway/(?P<hq_api_id>[\w-]+)/$', AddDomainGatewayView.as_view(), name=AddDomainGatewayView.urlname ), url(r'^edit_gateway/(?P<hq_api_id>[\w-]+)/(?P<backend_id>[\w-]+)/$', EditDomainGatewayView.as_view(), name=EditDomainGatewayView.urlname ), url(r'^gateways/$', DomainSmsGatewayListView.as_view(), name=DomainSmsGatewayListView.urlname), url(r'^chat_contacts/$', ChatOverSMSView.as_view(), name=ChatOverSMSView.urlname), url(r'^chat_contact_list/$', chat_contact_list, name='chat_contact_list'), url(r'^chat/(?P<contact_id>[\w-]+)/(?P<vn_id>[\w-]+)/$', chat, name='sms_chat'), url(r'^chat/(?P<contact_id>[\w-]+)/?$', chat, name='sms_chat'), url(r'^api/history/$', ChatMessageHistory.as_view(), name=ChatMessageHistory.urlname), url(r'^api/last_read_message/$', ChatLastReadMessage.as_view(), name=ChatLastReadMessage.urlname), url(r'^settings/$', SMSSettingsView.as_view(), name=SMSSettingsView.urlname), url(r'^subscribe_sms/$', SubscribeSMSView.as_view(), name=SubscribeSMSView.urlname), url(r'^languages/$', SMSLanguagesView.as_view(), name=SMSLanguagesView.urlname), url(r'^languages/edit/$', edit_sms_languages, name='edit_sms_languages'),
) urlpatterns = patterns('corehq.apps.sms.views', url(r'^$', 'default', name='sms_default'), url(r'^post/?$', 'post', name='sms_post'), url(r'^send_to_recipients/$', 'send_to_recipients'), url(r'^compose/$', 'compose_message', name='sms_compose_message'), url(r'^message_test/(?P<phone_number>\d+)/$', 'message_test', name='message_test'), url(r'^api/send_sms/$', 'api_send_sms', name='api_send_sms'), url(r'^history/$', 'messaging', name='messaging'), url(r'^forwarding_rules/$', 'list_forwarding_rules', name='list_forwarding_rules'), url(r'^add_forwarding_rule/$', 'add_forwarding_rule', name='add_forwarding_rule'), url(r'^edit_forwarding_rule/(?P<forwarding_rule_id>[\w-]+)/$', 'add_forwarding_rule', name='edit_forwarding_rule'), url(r'^delete_forwarding_rule/(?P<forwarding_rule_id>[\w-]+)/$', 'delete_forwarding_rule', name='delete_forwarding_rule'), url(r'^add_gateway/(?P<backend_class_name>[\w-]+)/$', AddDomainGatewayView.as_view(), name=AddDomainGatewayView.urlname ), url(r'^edit_gateway/(?P<backend_class_name>[\w-]+)/(?P<backend_id>[\w-]+)/$', EditDomainGatewayView.as_view(), name=EditDomainGatewayView.urlname ), url(r'^gateways/$', DomainSmsGatewayListView.as_view(), name=DomainSmsGatewayListView.urlname), url(r'^chat_contacts/$', 'chat_contacts', name='chat_contacts'), url(r'^chat_contact_list/$', 'chat_contact_list', name='chat_contact_list'), url(r'^chat/(?P<contact_id>[\w-]+)/$', 'chat', name='sms_chat'), url(r'^api/history/$', 'api_history', name='api_history'), url(r'^api/last_read_message/$', 'api_last_read_message', name='api_last_read_message'), url(r'^settings/$', SMSSettingsView.as_view(), name=SMSSettingsView.urlname), url(r'^subscribe_sms/$', SubscribeSMSView.as_view(), name=SubscribeSMSView.urlname), url(r'^languages/$', 'sms_languages', name='sms_languages'), url(r'^languages/edit/$', 'edit_sms_languages', name='edit_sms_languages'), url(r'^translations/download/$', 'download_sms_translations', name='download_sms_translations'),
name=TestSMSMessageView.urlname), url(r'^api/send_sms/$', api_send_sms, name='api_send_sms'), url(r'^forwarding_rules/$', ListForwardingRulesView.as_view(), name=ListForwardingRulesView.urlname), url(r'^add_forwarding_rule/$', AddForwardingRuleView.as_view(), name=AddForwardingRuleView.urlname), url(r'^edit_forwarding_rule/(?P<forwarding_rule_id>[\w-]+)/$', EditForwardingRuleView.as_view(), name=EditForwardingRuleView.urlname), url(r'^delete_forwarding_rule/(?P<forwarding_rule_id>[\w-]+)/$', delete_forwarding_rule, name='delete_forwarding_rule'), url(r'^add_gateway/(?P<hq_api_id>[\w-]+)/$', AddDomainGatewayView.as_view(), name=AddDomainGatewayView.urlname), url(r'^edit_gateway/(?P<hq_api_id>[\w-]+)/(?P<backend_id>[\w-]+)/$', EditDomainGatewayView.as_view(), name=EditDomainGatewayView.urlname), url(r'^gateways/$', DomainSmsGatewayListView.as_view(), name=DomainSmsGatewayListView.urlname), url(r'^chat_contacts/$', ChatOverSMSView.as_view(), name=ChatOverSMSView.urlname), url(r'^chat_contact_list/$', chat_contact_list, name='chat_contact_list'), url(r'^chat/(?P<contact_id>[\w-]+)/(?P<vn_id>[\w-]+)/$', chat, name='sms_chat'), url(r'^chat/(?P<contact_id>[\w-]+)/?$', chat, name='sms_chat'),