code: function(callback) {
                  var deviceId;
  
                  var params = {
                      url: SERVICE_ADDRESSES.SSO_ADDRESS + SERVICES_PATH.SSO_DEVICES,
                      method: 'GET',
                      headers: {
                          'Authorization': 'Bearer ' + token
                      }
                  };
  
                  httpRequest(params, function(result) {
                      if (!result.hasError) {
                          var devices = JSON.parse(result.result.responseText).devices;
                          if (devices && devices.length > 0) {
                              for (var i = 0; i < devices.length; i++) {
                                  if (devices[i].current) {
                                      deviceId = devices[i].uid;
                                      break;
                                  }
                              }
  
                              if (!deviceId) {
                                  fireEvent('error', {
                                      code: 6000,
                                      message: CHAT_ERRORS[6000],
                                      error: null
                                  });
                              }
                              else {
                                  callback(deviceId);
                              }
                          }
                          else {
                              fireEvent('error', {
                                  code: 6001,
                                  message: CHAT_ERRORS[6001],
                                  error: null
                              });
                          }
                      }
                      else {
                          fireEvent('error', {
                              code: result.errorCode,
                              message: result.errorMessage,
                              error: result
                          });
                      }
                  });
              }
docs: *****************************************************
  P R I V A T E   M E T H O D S            *
  *****************************************************