Hi ,
Use a SQL Management plan with T-Sql statement for ur company wise rebuild indexes, this will be running in a scheduled plan and rebuild indexed will be run at the NAV application downtime bcoz the tables will be locked when the transactions in progress.