title: Insert datas into mysql(Sequelize) using javascript(NodeJS) based on radio button value
body: <p>I have this below json object</p>
  
  <pre><code>{
      "phoneno": [
      {
          "field1": "Mohamed",
          "field2": "123456789",
          "field3": "Sameer"
      },
      {
          "field1": "Ganesh",
          "field2": "987654321",
          "field3": "Pandiyan" 
       }
    ],
      "sender": "ifelse",
      "message": "test"
  }
  </code></pre>
  
  <p>I am showing this JSON in UI using <strong>ANGULARJS</strong> ng-repeat, also I am displaying radio button dynamically, see the below image </p>
  
  <p><a href="https://i.stack.imgur.com/5QzLX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5QzLX.png" alt="enter image description here"></a></p>
  
  <p>see there is radio button checked, in this columns, I have two mobile numbers,
  so I want to make the final object like this:</p>
  
  <pre><code>[
    {"phoneno" : 123456789 ; "sender" : "ifelse" ; "message" : "test"},
    {"phoneno" : 987654321 ; "sender" : "ifelse" ; "message" : "test"}
  ]
  </code></pre>
  
  <p>For example, if I got this type of JSON:</p>
  
  <pre><code>{
      "phoneno": [
      {
          "field1": "123456789",
          "field2": "Mohamed",
          "field3": "Sameer"
      },
      {
          "field1": "987654321",
          "field2": "Ganesh",
          "field3": "Pandiyan" 
       }
    ],
      "sender": "ifelse",
      "message": "test"
  }
  </code></pre>
  
  <p>now again </p>
  
  <p>I am showing this JSON in UI using ng-repeat, also I am displaying radio button dynamically, see the below image</p>
  
  <p><a href="https://i.stack.imgur.com/sFFd7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sFFd7.png" alt="enter image description here"></a></p>
  
  <p>see there is radio button checked, in this columns, i have two mobile numbers,
  so I want to make the final object like this:</p>
  
  <pre><code>[
    {"phoneno" : 123456789 ; "sender" : "ifelse" ; "message" : "test"},
    {"phoneno" : 987654321 ; "sender" : "ifelse" ; "message" : "test"}
  ]
  </code></pre>
  
  <p>if i got this type of object, I can bulk insert into mysql with the help of sequelize.</p>
  
  <p>How to done this?</p>
  
  <p>my api.js ( i did not still code, looking for the solution)</p>
  
  <pre><code>exports.sendFile2Sms = function (req, res) {
  
  };
  </code></pre>