XML 44 R33.htm IDEA: XBRL DOCUMENT v3.7.0.1
5. REVOLVING CREDIT FACILITY, NOTES PAYABLE AND CAPITAL LEASES (Details - Schedule of debt) - USD ($)
$ in Thousands
Jun. 30, 2017
Dec. 31, 2016
Discounts on term loan and notes $ (15,915) $ (16,783)
Promissory notes payable 787 980
Equipment notes payable 269 341
Obligations under capital leases 9,015 7,256
Total notes payable, line of credit and capital lease obligations 628,969 638,732
Less: current portion (27,317) (26,557)
Total notes payable, line of credit and capital lease obligations, long-term 601,652 612,175
First Lien Term Loans [Member]    
Term loans 466,813 478,938
Second Lien Term Loans [Member]    
Term loans $ 168,000 $ 168,000