diff --git a/include/controllers/default/cockpit/support/index.php b/include/controllers/default/cockpit/support/index.php index 274b42fdf..b88be808e 100644 --- a/include/controllers/default/cockpit/support/index.php +++ b/include/controllers/default/cockpit/support/index.php @@ -19,6 +19,11 @@ class Controller_Support extends Crunchbutton_Controller_Account { c::view()->display('support/new-chat'); break; + case 'make-call': + c::view()->layout('layout/ajax'); + c::view()->display('support/make-call'); + break; + case 'new': if ( !Crunchbutton_Support::adminHasCreatePermission() ) { diff --git a/include/controllers/default/cockpit/support/phone/connect.php b/include/controllers/default/cockpit/support/phone/connect.php index b9bc6c95e..1d194106c 100644 --- a/include/controllers/default/cockpit/support/phone/connect.php +++ b/include/controllers/default/cockpit/support/phone/connect.php @@ -4,7 +4,6 @@ class Controller_Support_Phone_Connect extends Crunchbutton_Controller_Account { public function init() { - switch (c::getPagePiece(3)) { case 'restaurant': $callerId = c::config()->twilio->live->outgoingRestaurant; @@ -14,11 +13,10 @@ class Controller_Support_Phone_Connect extends Crunchbutton_Controller_Account { break; case 'customer': default: - $callerId = c::config()->twilio->live->outgoingcustomer; + $callerId = c::config()->twilio->live->outgoingCustomer; break; } - $num = c::admin()->phone; $host = 'dev.crunchr.co'; //c::config()->host_callback @@ -29,17 +27,8 @@ class Controller_Support_Phone_Connect extends Crunchbutton_Controller_Account { '+1'.$num, 'http://'.$host.'/api/twilio/outgoing/'.c::getPagePiece(3).'?PhoneNumber='.$_REQUEST['phone'] ); - die('pick up your phone...'); - - exit; - - - - - - } } diff --git a/include/library/Crunchbutton/Community/Shift.php b/include/library/Crunchbutton/Community/Shift.php index 63024028a..cbc0c0dde 100644 --- a/include/library/Crunchbutton/Community/Shift.php +++ b/include/library/Crunchbutton/Community/Shift.php @@ -431,7 +431,9 @@ class Crunchbutton_Community_Shift extends Cana_Table { $twilio = new Twilio( c::config()->twilio->{$env}->sid, c::config()->twilio->{$env}->token ); - if( count( $communitiesWithoutShift ) > 0 ){ + // removed this sms for while + + if( false && count( $communitiesWithoutShift ) > 0 ){ $message = "The following communities doesn't have shifts for the current week: " . join( ', ', $communitiesWithoutShift ); diff --git a/include/views/default/cockpit/support/chat.phtml b/include/views/default/cockpit/support/chat.phtml index 2d659c1e4..781bcd493 100644 --- a/include/views/default/cockpit/support/chat.phtml +++ b/include/views/default/cockpit/support/chat.phtml @@ -33,6 +33,9 @@ View ticket +