'use strict' ; import { module } from 'angular' ; export const AZURE_SECURITYGROUP_SECURITYGROUP_READER = 'spinnaker.azure.securityGroup.reader' ; export const name = AZURE_SECURITYGROUP_SECURITYGROUP_READER ; module ( AZURE_SECURITYGROUP_SECURITYGROUP_READER , [ ] ) . factory ( 'azureSecurityGroupReader' , function ( ) { function resolveIndexedSecurityGroup ( indexedSecurityGroups , container , securityGroupId ) { const temp = securityGroupId . split ( '/' ) ; return indexedSecurityGroups [ container . account ] [ container . region ] [ temp [ temp . length - 1 ] ] ; } return { resolveIndexedSecurityGroup : resolveIndexedSecurityGroup , } ; } ) ;