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}/',
|
2021-02-24 16:00:12 +01:00
|
|
|
'reset_password' => '/reset_password/{id_user}/{token}/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'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/',
|
2021-07-13 01:21:23 +02:00
|
|
|
'stop_impersonate' => '/stop_impersonate/{csrf}/',
|
2019-10-29 14:57:13 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
'Command' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/command/',
|
|
|
|
'list_json' => '/command/json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'add' => '/command/add/',
|
|
|
|
'create' => '/command/create/{csrf}/',
|
|
|
|
'delete' => '/command/delete/{csrf}/',
|
|
|
|
'edit' => '/command/edit/',
|
|
|
|
'update' => '/command/update/{csrf}/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Contact' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/contact/',
|
|
|
|
'list_json' => '/contact/json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'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}/',
|
2021-04-24 00:10:23 +02:00
|
|
|
'conditional_delete' => '/contact/conditional_delete/{csrf}/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'json_list' => '/contacts.json/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Discussion' => [
|
|
|
|
'list' => [
|
|
|
|
'/discussion/',
|
|
|
|
'/discussion/p/{page}/',
|
|
|
|
],
|
2020-09-23 03:02:13 +02:00
|
|
|
'list_json' => '/discussion/json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'show' => '/discussion/show/{number}/',
|
|
|
|
'send' => '/discussion/send/{csrf}/',
|
2021-04-13 02:01:03 +02:00
|
|
|
'get_messages' => [
|
|
|
|
'/discussion/getmessage/{number}/{transaction_id}/',
|
|
|
|
'/discussion/getmessage/{number}/{transaction_id}/{since}/',
|
|
|
|
],
|
2019-10-29 14:57:13 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
'Event' => [
|
2021-03-24 00:22:17 +01:00
|
|
|
'list' => '/event/',
|
2020-09-23 03:02:13 +02:00
|
|
|
'list_json' => '/event/json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'delete' => '/event/delete/{csrf}/',
|
|
|
|
],
|
|
|
|
|
2019-11-09 03:35:12 +01:00
|
|
|
'Group' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/group/',
|
|
|
|
'list_json' => '/group/json/',
|
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}/',
|
2023-02-17 05:18:57 +01:00
|
|
|
'preview' => '/group/preview/{id_group}/',
|
2019-11-09 03:35:12 +01:00
|
|
|
'json_list' => '/groups.json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
],
|
2019-11-27 06:25:33 +01:00
|
|
|
|
|
|
|
'ConditionalGroup' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/conditional_group/',
|
|
|
|
'list_json' => '/conditional_group/json/',
|
2019-11-27 06:25:33 +01:00
|
|
|
'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/',
|
2023-02-17 05:18:57 +01:00
|
|
|
'preview' => '/conditional_group/preview/{id_group}/',
|
2019-11-28 01:55:11 +01:00
|
|
|
'json_list' => '/conditional_groups.json/',
|
2019-11-27 06:25:33 +01:00
|
|
|
],
|
2019-10-29 14:57:13 +01:00
|
|
|
|
|
|
|
'Received' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/received/',
|
2021-07-16 22:53:33 +02:00
|
|
|
'list_json' => [
|
|
|
|
'/received/json/',
|
|
|
|
'/received/json/{unread}/',
|
|
|
|
],
|
2020-09-23 03:02:13 +02:00
|
|
|
'list_unread' => '/unread/',
|
|
|
|
'mark_as' => '/mark/{status}/{csrf}/',
|
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}/',
|
|
|
|
],
|
2020-09-23 03:02:13 +02:00
|
|
|
'list_json' => '/scheduled/json/',
|
2019-11-29 00:19:34 +01:00
|
|
|
'add' => [
|
|
|
|
'/scheduled/add/',
|
|
|
|
],
|
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}/',
|
|
|
|
],
|
2020-09-23 03:02:13 +02:00
|
|
|
'list_json' => '/sended/json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'delete' => '/sended/delete/{csrf}/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'Setting' => [
|
|
|
|
'show' => '/setting/',
|
|
|
|
'update' => '/setting/update/{setting_name}/{csrf}/',
|
|
|
|
],
|
|
|
|
|
2019-11-09 03:35:12 +01:00
|
|
|
'SmsStop' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/smsstop/',
|
|
|
|
'list_json' => '/smsstop/json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'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' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/user/',
|
|
|
|
'list_json' => '/user/json/',
|
2019-10-29 14:57:13 +01:00
|
|
|
'add' => '/user/add/',
|
|
|
|
'create' => '/user/create/{csrf}/',
|
|
|
|
'delete' => '/user/delete/{csrf}/',
|
2021-06-12 23:23:15 +02:00
|
|
|
'edit' => '/user/edit/',
|
|
|
|
'update' => '/user/update/{csrf}/',
|
2020-03-30 01:52:53 +02:00
|
|
|
'update_status' => '/user/delete/{status}/{csrf}/',
|
2021-07-13 01:21:23 +02:00
|
|
|
'impersonate' => '/user/impersonate/{csrf}/',
|
2019-10-29 14:57:13 +01:00
|
|
|
],
|
2019-11-12 17:37:20 +01:00
|
|
|
|
|
|
|
'Phone' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/phone/',
|
|
|
|
'list_json' => '/phone/json/',
|
2019-11-12 17:37:20 +01:00
|
|
|
'add' => '/phone/add/',
|
|
|
|
'create' => '/phone/create/{csrf}/',
|
|
|
|
'delete' => '/phone/delete/{csrf}/',
|
2023-02-04 01:15:36 +01:00
|
|
|
'edit' => '/phone/edit/',
|
|
|
|
'update' => '/phone/update/{csrf}/',
|
2023-02-20 03:17:53 +01:00
|
|
|
'update_status' => '/phone/update_status/{csrf}/',
|
|
|
|
'json_list' => '/phones.json/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'PhoneGroup' => [
|
|
|
|
'list' => '/phone_group/',
|
|
|
|
'list_json' => '/phone_group/json/',
|
|
|
|
'add' => '/phone_group/add/',
|
|
|
|
'create' => '/phone_group/create/{csrf}/',
|
|
|
|
'delete' => '/phone_group/delete/{csrf}/',
|
|
|
|
'edit' => '/phone_group/edit/',
|
|
|
|
'update' => '/phone_group/update/{csrf}/',
|
|
|
|
'preview' => '/phone_group/preview/{id_group}/',
|
|
|
|
'json_list' => '/phone_group.json/',
|
2019-11-12 17:37:20 +01:00
|
|
|
],
|
2019-12-04 03:04:45 +01:00
|
|
|
|
2021-03-24 00:22:17 +01:00
|
|
|
'Call' => [
|
|
|
|
'list' => '/call/',
|
|
|
|
'list_json' => '/call/json/',
|
|
|
|
'delete' => '/call/delete/{csrf}/',
|
|
|
|
],
|
|
|
|
|
2019-12-04 03:04:45 +01:00
|
|
|
'Webhook' => [
|
2020-09-23 03:02:13 +02:00
|
|
|
'list' => '/webhook/',
|
|
|
|
'list_json' => '/webhook/json/',
|
2019-12-04 03:04:45 +01:00
|
|
|
'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' => [
|
2020-04-02 01:55:55 +02:00
|
|
|
'update_sended_status' => '/callback/status/{adapter_uid}/',
|
2020-04-03 02:15:55 +02:00
|
|
|
'reception' => '/callback/reception/{adapter_uid}/{id_phone}/',
|
2021-03-23 04:31:13 +01:00
|
|
|
'inbound_call' => '/callback/inbound_call/{id_phone}/',
|
2021-03-24 00:22:17 +01:00
|
|
|
'end_call' => '/callback/end_call/{id_phone}/',
|
2020-01-08 02:14:38 +01:00
|
|
|
],
|
2020-01-17 01:13:40 +01:00
|
|
|
|
|
|
|
'Api' => [
|
|
|
|
'get_entries' => [
|
|
|
|
'/api/list/{entry_type}/',
|
|
|
|
'/api/list/{entry_type}/{page}/',
|
|
|
|
],
|
2023-02-24 16:29:10 +01:00
|
|
|
'get_usage' => '/api/usage/',
|
2020-01-17 16:35:13 +01:00
|
|
|
'post_scheduled' => [
|
|
|
|
'/api/scheduled/',
|
|
|
|
],
|
|
|
|
'delete_scheduled' => [
|
|
|
|
'/api/scheduled/{id}/',
|
|
|
|
],
|
2021-01-14 03:25:58 +01:00
|
|
|
'post_phone' => [
|
|
|
|
'/api/phone/',
|
|
|
|
],
|
2022-03-30 02:16:08 +02:00
|
|
|
'post_update_phone' => [
|
|
|
|
'/api/phone/{id}/',
|
|
|
|
],
|
2023-02-18 16:39:07 +01:00
|
|
|
'post_update_phone_status' => [
|
|
|
|
'/api/phone/{id}/status/',
|
|
|
|
],
|
2021-01-14 03:25:58 +01:00
|
|
|
'delete_phone' => [
|
|
|
|
'/api/phone/{id}/',
|
|
|
|
],
|
2020-01-17 01:13:40 +01:00
|
|
|
],
|
2019-11-08 19:17:59 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
define('ROUTES', $routes);
|
|
|
|
unset($routes);
|