Automatic machine for producing chain-link mesh