SP.UserProfiles.UserProfile.pictureImportEnabled property (sp.userprofiles)
Gets a Boolean value that indicates whether the user's picture is imported from Exchange.
Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.UserProfiles.UserProfile.get_pictureImportEnabled()
Return value
true if the user's picture is imported from Exchange, otherwise false.