MailIndex to angularjs. Fix invoice_retail - authorization.