/
var
/
www
/
html
/
plugin-techloyce
/
routes
/
Upload File
HOME
<?php Route::prefix("xero")->group(function () { //Authorizatin Routes Route::get('/authorize', "Xero\AuthorizationController@authorize_xero"); Route::get('/authorize-callback', "Xero\AuthorizationController@callback_xero"); //----------------- //Resource Routes Route::post('/contact', "Xero\ResourceController@contact"); Route::post('/invoice', "Xero\ResourceController@invoice"); //----------------- }); Route::prefix("zoho")->group(function () { Route::prefix("zoho-inventory")->group(function () { //Webhooks Route::post('/contact', "Zoho\ZohoInventory\ZohoInventoryController@contact"); Route::post('/items', "Zoho\ZohoInventory\ZohoInventoryController@item"); Route::post('/invoice', "Zoho\ZohoInventory\ZohoInventoryController@invoice"); Route::post('/bill', "Zoho\ZohoInventory\ZohoInventoryController@bill"); Route::post('/credit-note', "Zoho\ZohoInventory\ZohoInventoryController@credit_note"); //-------- }); }); //-----------PAYMENT GATEWAY ROUTES------------///// Route::prefix("payment")->group(function () { Route::get('authorize', "Payment\PaymentController@authorize_user"); Route::get('authorize-callback', "Payment\PaymentController@authorize_callback"); Route::post('/create-profile', "Payment\PaymentController@create_profile"); Route::post('/update-profile', "Payment\PaymentController@update_profile"); Route::post('/delete-profile', "Payment\PaymentController@delete_profile"); Route::post('/post-payment', "Payment\PaymentController@post_payment"); }); Route::prefix("payment-gateways")->group(function () { Route::get('subscriptions', "PaymentGateways\PaymentGatewaysController@listSubscriptions"); Route::get('subscription/{id}', "PaymentGateways\PaymentGatewaysController@retrieveSubscription"); Route::get('authentication', "PaymentGateways\PaymentGatewaysController@authenticate"); Route::get('code', "PaymentGateways\PaymentGatewaysController@getCode"); Route::get('customers', "PaymentGateways\PaymentGatewaysController@listCustomers"); Route::get('customer/{id}', "PaymentGateways\PaymentGatewaysController@retrieveCustomer"); Route::post('customer/delete/{id}', "PaymentGateways\PaymentGatewaysController@deleteCustomer"); Route::post('customer', "PaymentGateways\PaymentGatewaysController@createCustomer"); Route::post('customer/{id}', "PaymentGateways\PaymentGatewaysController@updateCustomer"); Route::post('customer/{id}/{payment_method_id}', "PaymentGateways\PaymentGatewaysController@updateCustomerAndPaymentMethod"); Route::get('payment-methods/{customer_id}', "PaymentGateways\PaymentGatewaysController@customerPaymentMethods"); Route::get('payment-method/{customer_id}/{id}', "PaymentGateways\PaymentGatewaysController@retrievePaymentMethod"); Route::post('payment-method/delete/{customer_id}/{id}', "PaymentGateways\PaymentGatewaysController@deletePaymentMethod"); Route::post('payment-method/{customer_id}', "PaymentGateways\PaymentGatewaysController@createPaymentMethod"); Route::post('payment-method/{customer_id}/{id}', "PaymentGateways\PaymentGatewaysController@updatePaymentMethod"); Route::get('charges/{customer_id}', "PaymentGateways\PaymentGatewaysController@customerCharges"); Route::post('charge/{customer_id}/{payment_method_id}', "PaymentGateways\PaymentGatewaysController@createCharge"); Route::post('refund/{customer_id}/{payment_method_id}/{transaction_id}', "PaymentGateways\PaymentGatewaysController@createRefund"); Route::post('direct-charge', "PaymentGateways\PaymentGatewaysController@createDirectCharge"); Route::get('charge/{id}', "PaymentGateways\PaymentGatewaysController@retrieveCharge"); Route::get('meta/{app}/{type}', "PaymentGateways\PaymentGatewaysController@getApiMeta"); Route::get('form-keys/{app}', "PaymentGateways\PaymentGatewaysController@getJSFormAPIKeys"); Route::get('list', "PaymentGateways\PaymentGatewaysController@getPaymentGatewayslist"); Route::post('execute-payment/{PayerID}/{paymentId}', "PaymentGateways\PaymentGatewaysController@execute_payment"); }); //-----------END PAYMENT GATEWAY ROUTES--------///// //-----------DIGITAL SIGNATURE ROUTES------------///// Route::prefix("digital-sign")->group(function () { Route::get('authorize', "DigitalSign\DigitalSignController@authorize_user"); Route::post('authorize', "DigitalSign\DigitalSignController@authorize_user"); Route::get('authorize-callback', "DigitalSign\DigitalSignController@authorize_callback"); Route::post('signature-request', "DigitalSign\DigitalSignController@signature_request"); Route::get('get-templates', "DigitalSign\DigitalSignController@get_templates"); Route::get('get-template-by-id', "DigitalSign\DigitalSignController@get_template_by_id")->name("getTemplatesById"); Route::get('view-templates', "DigitalSign\DigitalSignController@view_templates"); Route::post('template-by-id', "DigitalSign\DigitalSignController@template_by_id")->name("templateById"); Route::post('send-signature-request', "DigitalSign\DigitalSignController@send_signature_request"); Route::get('get-templates-status', "DigitalSign\DigitalSignController@RequestStatus"); Route::post('send-template', 'DigitalSign\DigitalSignController@send_template')->name("sendTemplate"); Route::get('get-library-documents/{id?}/{identifier?}', 'DigitalSign\DigitalSignController@getLibraryDocuments')->name('getLibraryDocuments'); Route::post('app_callbacks', "DigitalSign\DigitalSignController@app_callbacks"); //get_templates_list Route::get('list-templates', "DigitalSign\DigitalSignController@get_templates_list"); //GetRequestStatus Route::get('get_templates_status', "DigitalSign\DigitalSignController@GetRequestStatus"); Route::get('callback_endpoint', "DigitalSign\DigitalSignController@callback_endpoint"); //deleteTemplate Route::post('deleteTemplate', 'DigitalSign\DigitalSignController@deleteTemplate'); Route::post('create_embedded_draft', 'DigitalSign\DigitalSignController@create_embedded_draft'); Route::post('upload_pdf', 'DigitalSign\DigitalSignController@upload_pdf'); //previewing_template Route::post('previewing_template', 'DigitalSign\DigitalSignController@previewing_template'); Route::post('send-embedded-signature-request', "DigitalSign\DigitalSignController@send_embedded_signature_request"); }); //-----------END DIGITAL SIGNATURE ROUTES--------///// //-----------TELEPHONY ROUTES------------///// Route::prefix("telephony")->group(function () { Route::get('authorize', "Telephony\TelephonyController@authorize_user"); Route::get('authorize-callback', "Telephony\TelephonyController@authorize_callback"); //Route::get('sms-read', "Telephony\TelephonyController@sms_read"); //Route::get('make-call', "Telephony\TelephonyController@make_call"); Route::get('sms-send', "Telephony\TelephonyController@sms_send"); Route::post('sms-request', "Telephony\TelephonyController@sms_request")->name('sms-request'); Route::post('sms-get', "Telephony\TelephonyController@sms_get")->name('sms-get'); Route::get('/jobRun', function () { $exitCode = Artisan::call('update:ringHook'); }); }); //-----------END TELEPHONY ROUTES--------///// //-----------TWILIO ROUTES---------------///// Route::prefix("twilio")->group(function () { Route::get("sms-send", "Twilio\TwilioController@sms_send"); Route::post('twilio-sms-request', "Twilio\TwilioController@sms_request")->name('twilio-sms-request'); Route::post('sms-status-callback', "Twilio\TwilioController@sms_status_callback")->name('sms-status-callback'); Route::post('inbound-sms', "Twilio\TwilioController@twilio_inbound_sms")->name('inbound-sms'); }); //-----------CRM ROUTES------------///// Route::prefix("crm")->group(function () { Route::get('authorize', "CRM\CRMController@authorize_user"); Route::get('authorize-callback', "CRM\CRMController@authorize_callback"); }); //-----------END CRM ROUTES--------///// /// System Routes Route::get('/test', "Zoho\ZohoInventory\ZohoInventoryController@test"); Route::get('/cache-clear', function () { \Illuminate\Support\Facades\Artisan::call("config:cache"); return "Cleared"; }); Route::get('/storage_link', function () { Artisan::call('storage:link'); return "storage_link"; }); Route::get('/migration', function () { Artisan::call('migrate:fresh'); return "Done"; });