How to get embedded from input value in cmaunda script while submitting embedded form

I have camunda embedded form in which i should get previous selectedDocument data and enrich it with value which is submitted now, but when i try to make this i got this erros:

TypeError: Cannot read property ‘refusalComment’ of undefined
What should i change to make this task correctly?
I have used this exmaple:

here is my code:

    form role="form">
      <script cam-script type="text/form-script">
       var data=$[];
camForm.on('form-loaded', function() {
  // tell the form SDK to fetch the variable named 'document'
camForm.on('variables-fetched', function() {
  // work with the variable (bind it to the current AngularJS $scope)
  $scope.selectedDocuments =enrichJsonDataVar(camForm.variableManager.variableValue('selectedDocuments'));    
   $scope.enrichJsonDataVar=function (jsonData){
     var form = $scope.variablesForm;
  var refusalComment = form.refusalComment.$modelValue;
 var user = form.user.$modelValue;
   for(var  i=0;i<Object.keys(data).length;i++){
 return data;


    <div class="container">    
          <div class="form-group">
          <label for="refusalComment" class="control-label">კომენტარი უარზე</label>
          <input type="text"
               name="კკომენტარი უარზედ"/>
                 <label for="choose" class="control-label">აირჩიე  მომხმარებელი</label>
                <div class="form-group">
                <select cam-variable-name="user" style="width:250px; height:40px;margin-left:3px;margin-top:5px" cam-variable-type="String" ng-model="user" class="ng-valid ng-valid-cam-variable-type ng-pristine">
               <option value=""></option>
              <option value="">m.mmmm@gmail.come</option>