code: function(messageContent, addFromService) {
                  var threadData = formatDataToMakeConversation(messageContent);
  
                  if (addFromService) {
                      fireEvent('threadEvents', {
                          type: 'THREAD_NEW',
                          result: {
                              thread: threadData
                          }
                      });
  
                      /**
                       * Add New Thread into cache database #cache
                       */
                      if (canUseCache) {
                          if (db) {
                              var tempData = {};
  
                              try {
                                  var salt = Utility.generateUUID();
  
                                  tempData.id = threadData.id;
                                  tempData.owner = userInfo.id;
                                  tempData.title = Utility.crypt(threadData.title, cacheSecret, salt);
                                  tempData.time = threadData.time;
                                  tempData.data = Utility.crypt(JSON.stringify(unsetNotSeenDuration(threadData)), cacheSecret, salt);
                                  tempData.salt = salt;
                              }
                              catch (error) {
                                  fireEvent('error', {
                                      code: error.code,
                                      message: error.message,
                                      error: error
                                  });
                              }
  
                              db.threads.put(tempData)
                                  .catch(function(error) {
                                      fireEvent('error', {
                                          code: error.code,
                                          message: error.message,
                                          error: error
                                      });
                                  });
                          }
                          else {
                              fireEvent('error', {
                                  code: 6601,
                                  message: CHAT_ERRORS[6601],
                                  error: null
                              });
                          }
                      }
                  }
                  return threadData;
              }
docs: *****************************************************
  P R I V A T E   M E T H O D S            *
  *****************************************************