XML 45 R34.htm IDEA: XBRL DOCUMENT v3.8.0.1
5. REVOLVING CREDIT FACILITY, NOTES PAYABLE AND CAPITAL LEASES (Details - Schedule of debt) - USD ($)
$ in Thousands
Sep. 30, 2017
Dec. 31, 2016
Discounts on term loan and notes $ (19,309) $ (16,783)
Promissory notes payable 690 980
Equipment notes payable 233 341
Obligations under capital leases 7,790 7,256
Total notes payable, line of credit and capital lease obligations 617,946 638,732
Less: current portion (34,852) (26,557)
Total notes payable, line of credit and capital lease obligations, long-term 583,094 612,175
First Lien Term Loans [Member]    
Term loans 628,542 478,938
Second Lien Term Loans [Member]    
Term loans $ 0 $ 168,000