function GetInputData($_inputIndex, $_chat = true) { $data = array(111 => $this->Fullname, 112 => $this->Email, 113 => $this->Company, 114 => $this->Question, 116 => $this->Phone); if (isset($data[$_inputIndex])) { $value = $data[$_inputIndex]; } else { if (isset($this->Customs[$_inputIndex])) { $value = $this->Customs[$_inputIndex]; } else { return ""; } } if (isset(Server::$Operators[CALLER_SYSTEM_ID])) { $lvl = Server::$Operators[CALLER_SYSTEM_ID]->GetInputMaskLevel($_inputIndex, $_chat); if ($lvl > 0) { return OperatorRequest::MaskData($value, $lvl); } } return $value; }