from django.conf.urls import *
import views

urlpatterns = patterns('',
    (r'^admin/crm/apply_tag/$', views.apply_tag),
    (r'^admin/crm/send_emails/$', views.send_emails),
    (r'^admin/crm/lead/bulk_upload/$', views.bulk_upload),
    (r'^admin/crm/lead/bulk_import/$', views.bulk_import),
    (r'^admin/crm/unsubscribe/(?P<unsubscribe_id_base16>.*)$', views.unsubscribe),
    (r'^admin/crm/preview_communication/(?P<communication_id>\d+)/$', views.preview_communication),
    
    # Tracking images and URL links
    (r'^imgid/(?P<communication_plus_check>.*)/(?P<lead_plus_check>.*)/$', views.tracking_image),
    (r'^optin/(?P<communication_plus_check>.*)/(?P<lead_plus_check>.*)/$', views.opt_in),
    (r'^redirect/(?P<communication_plus_check>.*)/(?P<lead_plus_check>.*)/(?P<link_plus_check>.*)/$', views.redirect_link),
)
