Quarterly report pursuant to Section 13 or 15(d)

NOTES PAYABLE (Details)

v3.19.3
NOTES PAYABLE (Details)
$ / shares in Units, $ in Thousands
9 Months Ended 12 Months Ended
Sep. 30, 2019
USD ($)
Equity_Instrument
$ / shares
Dec. 31, 2018
USD ($)
Equity_Instrument
Debt Instrument [Line Items]    
Conversion Price | $ / shares $ 10.00  
Principal Outstanding $ 19,279 $ 55,172
Discount Amount 72 16,933
Carrying Amount $ 19,207 $ 38,239
Shares Underlying Notes | Equity_Instrument 1,648 6,499
2013 Notes payable [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding $ 926 $ 909
Carrying Amount $ 926 909
2015 Notes payable [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding   10
Carrying Amount   10
2016 Notes payable [Member]    
Debt Instrument [Line Items]    
Term of Notes Due on demand  
Principal Outstanding   843
Carrying Amount   843
2016 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
2016 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
2017 Notes payable [Member]    
Debt Instrument [Line Items]    
Term of Notes Due on demand  
Principal Outstanding   2,575
Carrying Amount   2,575
2017 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Interest rate 5.00%  
2017 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
2018 Notes payable [Member]    
Debt Instrument [Line Items]    
Principal Outstanding   12,311
Discount Amount   9,233
Carrying Amount   3,078
2018 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
2018 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
Term of Notes 18 months  
2019 Notes payable [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
Principal Outstanding $ 2,960  
Carrying Amount $ 2,960  
2019 Notes payable [Member] | Minimum [Member]    
Debt Instrument [Line Items]    
Term of Notes Due on demand  
2019 Notes payable [Member] | Maximum [Member]    
Debt Instrument [Line Items]    
Term of Notes 6 months  
Notes Payable [Member]    
Debt Instrument [Line Items]    
Principal Outstanding $ 3,886 16,648
Discount Amount   9,233
Carrying Amount 3,886 7,415
Principal Outstanding, Current 3,886 12,448
Discount Amount Current   6,054
Notes payable, current $ 3,886 6,394
Principal Outstanding, Non Current   4,200
Discount Amount Non Current   3,179
Notes payable, non-current   1,021
2016 Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding $ 20 270
Carrying Amount $ 20 270
2017 Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding   39
Carrying Amount   39
2018 Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Interest rate 11.00%  
Term of Notes Due on demand  
Principal Outstanding $ 159 159
Carrying Amount $ 159 159
2019 Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Interest rate 10.00%  
Term of Notes Due on demand  
Principal Outstanding $ 14  
Carrying Amount 14  
Notes payable - related parties [Member]    
Debt Instrument [Line Items]    
Principal Outstanding 193 468
Carrying Amount 193 468
Principal Outstanding, Current 193 468
Notes payable, current $ 193 $ 468