INTANGIBLE ASSETS - Summary of Intangible assets other than goodwill (Details 1) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Intangible Assets Other Than Goodwill [Line Items]    
Gross Carrying Amount $ 49,703 $ 49,555
Accumulated Amortization (31,654) (26,687)
Net Book Value $ 18,049 22,868
Purchased and developed software    
Intangible Assets Other Than Goodwill [Line Items]    
Remaining Useful Lives 1 year 9 months 18 days  
Gross Carrying Amount $ 18,205 15,399
Accumulated Amortization (12,806) (9,503)
Net Book Value 5,399 5,896
Software in development    
Intangible Assets Other Than Goodwill [Line Items]    
Gross Carrying Amount 1,131 1,250
Accumulated Amortization
Net Book Value 1,131 1,250
Software    
Intangible Assets Other Than Goodwill [Line Items]    
Gross Carrying Amount 19,336 16,649
Accumulated Amortization (12,806) (9,503)
Net Book Value $ 6,530 7,146
Licenses    
Intangible Assets Other Than Goodwill [Line Items]    
Remaining Useful Lives 2 years 7 months 6 days  
Gross Carrying Amount $ 13,215 13,215
Accumulated Amortization (12,534) (12,167)
Net Book Value $ 681 1,048
Customer relationships    
Intangible Assets Other Than Goodwill [Line Items]    
Remaining Useful Lives 7 years 7 months 6 days  
Gross Carrying Amount $ 8,167 8,167
Accumulated Amortization (3,039) (2,285)
Net Book Value $ 5,128 5,882
Technologies    
Intangible Assets Other Than Goodwill [Line Items]    
Remaining Useful Lives 11 years 1 month 6 days  
Gross Carrying Amount $ 4,235 4,316
Accumulated Amortization (822) (595)
Net Book Value $ 3,413 3,721
Patents and trademarks    
Intangible Assets Other Than Goodwill [Line Items]    
Remaining Useful Lives 2 years  
Gross Carrying Amount $ 3,747 4,236
Accumulated Amortization (2,368) (2,137)
Net Book Value $ 1,379 2,099
Trade names    
Intangible Assets Other Than Goodwill [Line Items]    
Remaining Useful Lives Indefinite  
Gross Carrying Amount $ 918 2,972
Accumulated Amortization
Net Book Value 918 2,972
Total other intangibles assets    
Intangible Assets Other Than Goodwill [Line Items]    
Gross Carrying Amount 30,367 32,906
Accumulated Amortization (18,848) (17,184)
Net Book Value $ 11,519 $ 15,722