function GroupFrameController(e){function t(t){var n=funcObj.devCon.getAccountID();if(n){var r=[];for(var i=0,s=t.length;i<s;i++){var o=e.cloneGroup(t[i]);delete o.groupStatus,delete o.authLevel,delete o.balance,r.push(o)}var u={};r.length>0&&(u.accountID=n,u.groups=r),funcObj.appcomm.appSend({method:"setData",params:{name:"groupsCache",value:JSON.stringify(u)}})}}function n(){funcObj.appcomm.appSend({method:"getData",params:{name:"groupsCache"},id:null},r)}function r(t){try{var n=JSON.parse(t),r=funcObj.devCon.getAccountID();if(r===n.accountID){var i=n.groups;for(var s=0,o=i.length;s<o;s++){var u=i[s];e.updateGroup({groupID:u.groupID,groupName:u.groupName,groupMaster:u.groupMaster,roles:u.roles,originType:"frame"})}}else n.accountID&&funcObj.appcomm.appSend({method:"setData",params:{name:"groupsCache",value:"{}"}})}catch(a){}}this.fetchFrameGroups=n,this.persistFrameGroups=t};