2019-10-29 14:57:13 +01:00
|
|
|
<?php
|
2019-11-08 19:17:59 +01:00
|
|
|
$routes = array(
|
2019-10-29 14:57:13 +01:00
|
|
|
'Connect' => [
|
|
|
|
'login' => '/',
|
|
|
|
'connection' => '/connection/',
|
|
|
|
'forget_password' => '/forget_password/',
|
|
|
|
'send_reset_password' => '/send_reset_password/{csrf}/',
|
|
|
|
'reset_password' => '/reset_password/{user_id}/{token}/',
|
|
|
|
'logout' => '/logout/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Dashboard' => [
|
|
|
|
'show' => '/dashboard/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Account' => [
|
|
|
|
'show' => '/account/',
|
|
|
|
'update_password' => '/account/update_password/{csrf}/',
|
|
|
|
'update_transfer' => '/account/update_transfer/{csrf}/',
|
|
|
|
'update_email' => '/account/update_email/{csrf}/',
|
2020-01-08 02:14:38 +01:00
|
|
|
'update_api_key' => '/account/update_api_key/{csrf}/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'delete' => '/account/delete/{csrf}/',
|
|
|
|
'logout' => '/logout/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Command' => [
|
|
|
|
'list' => [
|
|
|
|
'/command/',
|
|
|
|
'/command/p/{page}/',
|
|
|
|
],
|
|
|
|
'add' => '/command/add/',
|
|
|
|
'create' => '/command/create/{csrf}/',
|
|
|
|
'delete' => '/command/delete/{csrf}/',
|
|
|
|
'edit' => '/command/edit/',
|
|
|
|
'update' => '/command/update/{csrf}/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Contact' => [
|
|
|
|
'list' => [
|
|
|
|
'/contact/',
|
|
|
|
'/contact/p/{page}/',
|
|
|
|
],
|
|
|
|
'add' => '/contact/add/',
|
|
|
|
'create' => '/contact/create/{csrf}/',
|
|
|
|
'delete' => '/contact/delete/{csrf}/',
|
|
|
|
'edit' => '/contact/edit/',
|
|
|
|
'update' => '/contact/update/{csrf}/',
|
2019-11-30 05:31:20 +01:00
|
|
|
'import' => '/contact/import/{csrf}/',
|
|
|
|
'export' => '/contact/export/{format}/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'json_list' => '/contacts.json/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Discussion' => [
|
|
|
|
'list' => [
|
|
|
|
'/discussion/',
|
|
|
|
'/discussion/p/{page}/',
|
|
|
|
],
|
|
|
|
'show' => '/discussion/show/{number}/',
|
|
|
|
'send' => '/discussion/send/{csrf}/',
|
|
|
|
'get_messages' => '/discussion/getmessage/{number}/{transaction_id}/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Event' => [
|
|
|
|
'list' => [
|
|
|
|
'/event/',
|
|
|
|
'/event/p/{page}/',
|
|
|
|
],
|
|
|
|
'delete' => '/event/delete/{csrf}/',
|
|
|
|
],
|
|
|
|
|
2019-11-09 03:35:12 +01:00
|
|
|
'Group' => [
|
2019-10-29 14:57:13 +01:00
|
|
|
'list' => [
|
2019-11-09 03:35:12 +01:00
|
|
|
'/group/',
|
|
|
|
'/group/p/{page}/',
|
2019-10-29 14:57:13 +01:00
|
|
|
],
|
2019-11-09 03:35:12 +01:00
|
|
|
'add' => '/group/add/',
|
|
|
|
'create' => '/group/create/{csrf}/',
|
|
|
|
'delete' => '/group/delete/{csrf}/',
|
|
|
|
'edit' => '/group/edit/',
|
|
|
|
'update' => '/group/update/{csrf}/',
|
|
|
|
'json_list' => '/groups.json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
],
|
2019-11-27 06:25:33 +01:00
|
|
|
|
|
|
|
'ConditionalGroup' => [
|
|
|
|
'list' => [
|
|
|
|
'/conditional_group/',
|
|
|
|
'/conditional_group/p/{page}/',
|
|
|
|
],
|
|
|
|
'add' => '/conditional_group/add/',
|
|
|
|
'create' => '/conditional_group/create/{csrf}/',
|
|
|
|
'delete' => '/conditional_group/delete/{csrf}/',
|
|
|
|
'edit' => '/conditional_group/edit/',
|
|
|
|
'update' => '/conditional_group/update/{csrf}/',
|
2019-11-28 01:55:11 +01:00
|
|
|
'contacts_preview' => '/conditional_group/preview/',
|
|
|
|
'json_list' => '/conditional_groups.json/',
|
2019-11-27 06:25:33 +01:00
|
|
|
],
|
2019-10-29 14:57:13 +01:00
|
|
|
|
|
|
|
'Received' => [
|
|
|
|
'list' => [
|
|
|
|
'/received/',
|
|
|
|
'/received/p/{page}/',
|
|
|
|
],
|
2019-12-02 01:55:06 +01:00
|
|
|
'list_unread' => [
|
|
|
|
'/unread/',
|
|
|
|
'/unread/p/{page}/',
|
|
|
|
],
|
2019-10-29 14:57:13 +01:00
|
|
|
'delete' => '/received/delete/{csrf}/',
|
2019-11-09 03:35:12 +01:00
|
|
|
'popup' => '/received/popup/',
|
2019-10-29 14:57:13 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
'Scheduled' => [
|
|
|
|
'list' => [
|
|
|
|
'/scheduled/',
|
|
|
|
'/scheduled/p/{page}/',
|
|
|
|
],
|
2019-11-29 00:19:34 +01:00
|
|
|
'add' => [
|
|
|
|
'/scheduled/add/',
|
|
|
|
'/scheduled/add/{prefilled}/',
|
|
|
|
],
|
2019-10-29 14:57:13 +01:00
|
|
|
'create' => '/scheduled/create/{csrf}/',
|
|
|
|
'edit' => '/scheduled/edit/',
|
|
|
|
'update' => '/scheduled/update/{csrf}/',
|
|
|
|
'delete' => '/scheduled/delete/{csrf}/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Sended' => [
|
|
|
|
'list' => [
|
|
|
|
'/sended/',
|
|
|
|
'/sended/p/{page}/',
|
|
|
|
],
|
|
|
|
'delete' => '/sended/delete/{csrf}/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Setting' => [
|
|
|
|
'show' => '/setting/',
|
|
|
|
'update' => '/setting/update/{setting_name}/{csrf}/',
|
|
|
|
],
|
|
|
|
|
2019-11-09 03:35:12 +01:00
|
|
|
'SmsStop' => [
|
2019-10-29 14:57:13 +01:00
|
|
|
'list' => [
|
|
|
|
'/smsstop/',
|
|
|
|
'/smsstop/p/{page}/',
|
|
|
|
],
|
|
|
|
'delete' => '/smsstop/delete/{csrf}/',
|
|
|
|
],
|
|
|
|
|
2019-11-20 02:45:00 +01:00
|
|
|
'Templating' => [
|
|
|
|
'render_preview' => '/template/preview/',
|
|
|
|
],
|
|
|
|
|
2019-10-29 14:57:13 +01:00
|
|
|
'User' => [
|
|
|
|
'list' => [
|
|
|
|
'/user/',
|
|
|
|
'/user/p/{page}/',
|
|
|
|
],
|
|
|
|
'add' => '/user/add/',
|
|
|
|
'create' => '/user/create/{csrf}/',
|
|
|
|
'delete' => '/user/delete/{csrf}/',
|
|
|
|
],
|
2019-11-12 17:37:20 +01:00
|
|
|
|
|
|
|
'Phone' => [
|
|
|
|
'list' => [
|
|
|
|
'/phone/',
|
|
|
|
'/phone/p/{page}/',
|
|
|
|
],
|
|
|
|
'add' => '/phone/add/',
|
|
|
|
'create' => '/phone/create/{csrf}/',
|
|
|
|
'delete' => '/phone/delete/{csrf}/',
|
|
|
|
],
|
2019-12-04 03:04:45 +01:00
|
|
|
|
|
|
|
'Webhook' => [
|
|
|
|
'list' => [
|
|
|
|
'/webhook/',
|
|
|
|
'/webhook/p/{page}/',
|
|
|
|
],
|
|
|
|
'add' => '/webhook/add/',
|
|
|
|
'create' => '/webhook/create/{csrf}/',
|
|
|
|
'delete' => '/webhook/delete/{csrf}/',
|
|
|
|
'edit' => '/webhook/edit/',
|
|
|
|
'update' => '/webhook/update/{csrf}/',
|
|
|
|
],
|
2020-01-08 02:14:38 +01:00
|
|
|
|
|
|
|
'Callback' => [
|
|
|
|
'update_sended_status' => '/callback/status/{adapter_name}/',
|
|
|
|
],
|
2020-01-12 00:50:54 +01:00
|
|
|
|
|
|
|
'Test' => [
|
|
|
|
'test' => '/test/{id_phone}/',
|
|
|
|
],
|
2019-11-08 19:17:59 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
define('ROUTES', $routes);
|
|
|
|
unset($routes);
|