define(["syncJobList"],function(syncJobList){"use strict";return function(view,params){var mode="offline",apiClient=ApiClient,mySyncJobList=new syncJobList({isLocalSync:"offline"===mode,serverId:apiClient.serverId(),userId:"offline"===mode?null:apiClient.getCurrentUserId(),element:view.querySelector(".syncActivity"),mode:mode});view.addEventListener("viewdestroy",function(){mySyncJobList&&(mySyncJobList.destroy(),mySyncJobList=null)})}});