예제 #1
0
        public Clue CreateProviderRoot()
        {
            var clue = this.Create(EntityType.Provider.Root, "ExchangeSharedMailbox");
            //??

            // TODO: Need to update?
            var data = clue.Data;

            data.EntityData.Name          = "Exchange Shared Mailbox";
            data.EntityData.Description   = "Exchange Shared Mailbox allows you to integrate shared Mailboxes.";
            data.EntityData.DisplayName   = "Exchange Shared Mailbox";
            data.EntityData.Uri           = new Uri("https://portal.office.com/Home");
            data.EntityData.LastChangedBy = new PersonReference(new EntityCode(EntityType.Infrastructure.User, "CluedIn", userId.ToString()));
            data.EntityData.Codes.Add(new EntityCode(EntityType.Product, "CluedIn", "ExchangeSharedMailbox"));
            var iconBytes = GetBytes(@"/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQECAgMCAgICAgQDAwIDBQQFBQUEBAQFBgcGBQUHBgQEBgkGBwgICAgIBQYJCgkICgcICAj/2wBDAQEBAQICAgQCAgQIBQQFCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAj/wAARCAEAAQADAREAAhEBAxEB/8QAHwABAAIDAAIDAQAAAAAAAAAAAAgKBwkLBQYBAgME/8QAWBAAAAUDAgMCCAgHCQ0JAAAAAAECAwQFBgcIEQkSIQoxExQ4UXZ3tLUVIjdBYXGW1BkaMjZVWJUjQlJidYGys9MXGCQzU1dydIKRk7HBFkRUc5KhpNHV/8QAHQEBAAMBAQEBAQEAAAAAAAAAAAcICQYFBAECA//EAE4RAAECBAEHBA8FBQgBBQEAAAEAAgMEBREGBwgSITFBUTU2c7ITGCIyUmFxdIGRkqGxs9IUQlRiciM0k6LBFRYXJDNTY/DCQ0SC0+Oj/9oADAMBAAIRAxEAPwC/wCICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICICLwFw3Jb1q0uRWrnr9HtujMlu7MnykR2Gi2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BEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBEBF//Z");

            var rawDataPart = new RawDataPart()
            {
                Type       = "/RawData/PreviewImage",
                MimeType   = MimeType.Jpeg.Code,
                FileName   = "preview_{0}".FormatWith(clue.OriginEntityCode.Key),
                RawDataMD5 = FileHashUtility.GetMD5Base64String(iconBytes),
                RawData    = Convert.ToBase64String(iconBytes)
            };

            clue.Details.RawData.Add(rawDataPart);

            clue.Data.EntityData.PreviewImage = new ImageReferencePart(rawDataPart, 128, 128);

            this.providerRoot = clue;

            return(this.CreateEntityReference(clue, EntityType.Organization, "CluedIn", EntityEdgeType.UsedBy, this.organisationID, p => p.ToString()));
        }
예제 #2
0
        public RawDataPart FetchAsRawDataPart(RestRequest request, string type, string filename)
        {
            RawDataPart rawDataPart = null;

            try
            {
                var data = _client.DownloadData(request);
                rawDataPart = new RawDataPart
                {
                    Type       = type,
                    MimeType   = CluedIn.Core.FileTypes.MimeType.Jpeg.Code,
                    FileName   = filename,
                    RawDataMD5 = FileHashUtility.GetMD5Base64String(data),
                    RawData    = Convert.ToBase64String(data)
                };
            }
            catch (Exception exception)
            {
                _log.Warn(() => "Could not download HubSpot thumbnail", exception);
            }

            return(rawDataPart);
        }
예제 #3
0
        protected override Clue ConfigureProviderRoot([NotNull] Clue clue)
        {
            if (clue == null)
            {
                throw new ArgumentNullException(nameof(clue));
            }

            clue.ValidationRuleSuppressions.Add(Constants.Validation.Rules.PROPERTIES_001_MustExist);

            var data = clue.Data.EntityData;

            data.Name        = DropBoxConstants.CrawlerName;
            data.Uri         = new Uri(DropBoxConstants.Uri);
            data.Description = DropBoxConstants.CrawlerDescription;
            data.DisplayName = DropBoxConstants.CrawlerDisplayName;
            // data.LastChangedBy = new PersonReference(new EntityCode(EntityType.Infrastructure.User, "CluedIn", userId.ToString())); TODO Figure out how we get user Id
            data.Codes.Add(new EntityCode(EntityType.Product, "CluedIn", "DropBox"));

            var iconBytes = GetIcon();

            var rawDataPart = new RawDataPart
            {
                Type       = "/RawData/PreviewImage",
                MimeType   = MimeType.Jpeg.Code,
                FileName   = "preview_{0}".FormatWith(clue.OriginEntityCode.Key),
                RawDataMD5 = FileHashUtility.GetMD5Base64String(iconBytes),
                RawData    = Convert.ToBase64String(iconBytes)
            };

            clue.Details.RawData.Add(rawDataPart);

            clue.Data.EntityData.PreviewImage = new ImageReferencePart(rawDataPart, 128, 128);

            ProviderRoot = clue;

            return(clue);
        }
예제 #4
0
        protected override Clue MakeClueImpl([NotNull] User input, Guid accountId)
        {
            if (input == null)
            {
                throw new ArgumentNullException(nameof(input));
            }

            var clue = _factory.Create(EntityType.Infrastructure.User, input.id.ToString(), accountId);

            var data = clue.Data.EntityData;

            if (!string.IsNullOrWhiteSpace(input.screen_name))
            {
                data.Codes.Add(new EntityCode(EntityType.Infrastructure.User, "Twitter", input.screen_name.ToLowerInvariant()));
            }

            if (!string.IsNullOrWhiteSpace(input.screen_name))
            {
                data.Name = input.name.ToString();
            }

            if (!string.IsNullOrWhiteSpace(input.description))
            {
                data.Description = input.description.ToString();
            }

            if (!string.IsNullOrEmpty(input.created_at))
            {
                if (DateTimeOffset.TryParse(input.created_at, out var createdDate))
                {
                    data.CreatedDate = createdDate;
                }
            }

            if (input.profile_image_url != null)
            {
                RawDataPart rawDataPart = null;

                RestClient restClient = new RestClient(input.profile_image_url);
                var        d          = restClient.DownloadData(new RestRequest(Method.GET));
                rawDataPart = new RawDataPart
                {
                    Type       = "/RawData/PreviewImage",
                    MimeType   = CluedIn.Core.FileTypes.MimeType.Jpeg.Code,
                    FileName   = "preview_{0}".FormatWith(input.profile_image_url),
                    RawDataMD5 = FileHashUtility.GetMD5Base64String(d),
                    RawData    = Convert.ToBase64String(d)
                };

                if (rawDataPart != null)
                {
                    clue.Details.RawData.Add(rawDataPart);
                    clue.Data.EntityData.PreviewImage = new ImageReferencePart(rawDataPart, 255, 255);
                }
            }

            if (!string.IsNullOrWhiteSpace(input.following_user))
            {
                _factory.CreateOutgoingEntityReference(clue, EntityType.Infrastructure.User, EntityEdgeType.Follows, input, input.following_user.ToLowerInvariant());
            }

            //if (!string.IsNullOrWhiteSpace(input.id))
            //{
            //    _factory.CreateOutgoingEntityReference(clue, EntityType.Announcement, EntityEdgeType.Created, input, input.id);
            //}

            var vocab = new TwitterUserVocabulary();

            if (!data.OutgoingEdges.Any())
            {
                _factory.CreateEntityRootReference(clue, EntityEdgeType.PartOf);
            }

            data.Properties[vocab.id]               = input.id.PrintIfAvailable();
            data.Properties[vocab.id_str]           = input.id_str.PrintIfAvailable();
            data.Properties[vocab.name]             = input.name.PrintIfAvailable();
            data.Properties[vocab.screen_name]      = input.screen_name.PrintIfAvailable();
            data.Properties[vocab.location]         = input.location.PrintIfAvailable();
            data.Properties[vocab.profile_location] = input.profile_location.PrintIfAvailable();
            data.Properties[vocab.description]      = input.description.PrintIfAvailable();
            data.Properties[vocab.url]              = input.url.PrintIfAvailable();
            //data.Properties[vocab.entities] = input.entities.PrintIfAvailable();
            data.Properties[vocab.isProtected]                        = input.isProtected.PrintIfAvailable();
            data.Properties[vocab.followers_count]                    = input.followers_count.PrintIfAvailable();
            data.Properties[vocab.friends_count]                      = input.friends_count.PrintIfAvailable();
            data.Properties[vocab.listed_count]                       = input.listed_count.PrintIfAvailable();
            data.Properties[vocab.created_at]                         = input.created_at.PrintIfAvailable();
            data.Properties[vocab.favourites_count]                   = input.favourites_count.PrintIfAvailable();
            data.Properties[vocab.utc_offset]                         = input.utc_offset.PrintIfAvailable();
            data.Properties[vocab.time_zone]                          = input.time_zone.PrintIfAvailable();
            data.Properties[vocab.geo_enabled]                        = input.geo_enabled.PrintIfAvailable();
            data.Properties[vocab.verified]                           = input.verified.PrintIfAvailable();
            data.Properties[vocab.statuses_count]                     = input.statuses_count.PrintIfAvailable();
            data.Properties[vocab.lang]                               = input.lang.PrintIfAvailable();
            data.Properties[vocab.contributors_enabled]               = input.contributors_enabled.PrintIfAvailable();
            data.Properties[vocab.is_translator]                      = input.is_translator.PrintIfAvailable();
            data.Properties[vocab.is_translation_enabled]             = input.is_translation_enabled.PrintIfAvailable();
            data.Properties[vocab.profile_background_color]           = input.profile_background_color.PrintIfAvailable();
            data.Properties[vocab.profile_background_image_url]       = input.profile_background_image_url.PrintIfAvailable();
            data.Properties[vocab.profile_background_image_url_https] = input.profile_background_image_url_https.PrintIfAvailable();
            data.Properties[vocab.profile_background_tile]            = input.profile_background_tile.PrintIfAvailable();
            data.Properties[vocab.profile_image_url]                  = input.profile_image_url.PrintIfAvailable();
            data.Properties[vocab.profile_image_url_https]            = input.profile_image_url_https.PrintIfAvailable();
            data.Properties[vocab.profile_banner_url]                 = input.profile_banner_url.PrintIfAvailable();
            data.Properties[vocab.profile_link_color]                 = input.profile_link_color.PrintIfAvailable();
            data.Properties[vocab.profile_sidebar_border_color]       = input.profile_sidebar_border_color.PrintIfAvailable();
            data.Properties[vocab.profile_sidebar_fill_color]         = input.profile_sidebar_fill_color.PrintIfAvailable();
            data.Properties[vocab.profile_text_color]                 = input.profile_text_color.PrintIfAvailable();
            data.Properties[vocab.profile_use_background_image]       = input.profile_use_background_image.PrintIfAvailable();
            data.Properties[vocab.has_extended_profile]               = input.has_extended_profile.PrintIfAvailable();
            data.Properties[vocab.default_profile]                    = input.default_profile.PrintIfAvailable();
            data.Properties[vocab.default_profile_image]              = input.default_profile_image.PrintIfAvailable();
            data.Properties[vocab.following]                          = input.following.PrintIfAvailable();
            data.Properties[vocab.follow_request_sent]                = input.follow_request_sent.PrintIfAvailable();
            data.Properties[vocab.notifications]                      = input.notifications.PrintIfAvailable();
            data.Properties[vocab.translator_type]                    = input.translator_type.PrintIfAvailable();

            return(clue);
        }
예제 #5
0
        protected override Clue MakeClueImpl(Employee input, Guid id)
        {
            var clue = _factory.Create("/Employee", input.EmployeeId, id);
            var data = clue.Data.EntityData;

            var vocab = new EmployeeVocabulary();

            //if (!string.IsNullOrEmpty(input.Degree))
            //{
            //    data.Name = input.Degree;
            //}

            if (input.Names != null)
            {
                if (input.Names.Any())
                {
                    data.Name = string.Format("{0} {1}", input.Names.First().FirstName, input.Names.First().LastName);
                    //foreach(var name in input.Names)
                    //{
                    //    data.Aliases.Add(name.);
                    //}
                }
            }

            if (input.EmploymentInfo != null)
            {
                data.Properties[vocab.BusinessTitle]    = input.EmploymentInfo.BusinessTitle.PrintIfAvailable();
                data.Properties[vocab.CustomGroupA]     = input.EmploymentInfo.CustomGroupA.PrintIfAvailable();
                data.Properties[vocab.CustomGroupB]     = input.EmploymentInfo.CustomGroupB.PrintIfAvailable();
                data.Properties[vocab.Department]       = input.EmploymentInfo.Department.PrintIfAvailable();
                data.Properties[vocab.EffectiveDate]    = input.EmploymentInfo.EffectiveDate.PrintIfAvailable();
                data.Properties[vocab.EmployeeClass]    = input.EmploymentInfo.EmployeeClass.PrintIfAvailable();
                data.Properties[vocab.EmployeeType]     = input.EmploymentInfo.EmployeeType.PrintIfAvailable();
                data.Properties[vocab.EmploymentStatus] = input.EmploymentInfo.EmploymentStatus.PrintIfAvailable();
                data.Properties[vocab.EventCode]        = input.EmploymentInfo.EventCode.PrintIfAvailable();
                data.Properties[vocab.EventDesc]        = input.EmploymentInfo.EventDesc.PrintIfAvailable();
                data.Properties[vocab.FlsaCode]         = input.EmploymentInfo.FlsaCode.PrintIfAvailable();
                data.Properties[vocab.JobCode]          = input.EmploymentInfo.JobCode.PrintIfAvailable();
                data.Properties[vocab.Location]         = input.EmploymentInfo.Location.PrintIfAvailable();
                data.Properties[vocab.PayGroup]         = input.EmploymentInfo.PayGroup.PrintIfAvailable();

                data.Properties[vocab.ReasonCode]       = input.EmploymentInfo.ReasonCode.PrintIfAvailable();
                data.Properties[vocab.ReasonDesc]       = input.EmploymentInfo.ReasonDesc.PrintIfAvailable();
                data.Properties[vocab.RegularTemporary] = input.EmploymentInfo.RegularTemporary.PrintIfAvailable();
                data.Properties[vocab.ServiceDate]      = input.EmploymentInfo.ServiceDate.PrintIfAvailable();

                data.Properties[vocab.StandardHours]   = input.EmploymentInfo.StandardHours.PrintIfAvailable();
                data.Properties[vocab.Supervisor]      = input.EmploymentInfo.Supervisor.PrintIfAvailable();
                data.Properties[vocab.TerminationDate] = input.EmploymentInfo.TerminationDate.PrintIfAvailable();

                data.Properties[vocab.WorkEmail] = input.EmploymentInfo.WorkEmail.PrintIfAvailable();
                if (input.EmploymentInfo.WorkEmail != null)
                {
                    var code = new EntityCode("/Employee", "CluedIn", input.EmploymentInfo.WorkEmail);
                    data.Codes.Add(code);
                }

                data.Properties[vocab.WorkersCompCode] = input.EmploymentInfo.WorkersCompCode.PrintIfAvailable();
                data.Properties[vocab.WorkPhone]       = input.EmploymentInfo.WorkPhone.PrintIfAvailable();
            }

            data.Properties[vocab.AlternateId] = input.AlternateId.PrintIfAvailable();
            data.Properties[vocab.EmployeeId]  = input.EmployeeId.PrintIfAvailable();

            if (input.EmployeePhoto != null)
            {
                if (!string.IsNullOrEmpty(input.EmployeePhoto.Uri))
                {
                    RawDataPart rawDataPart = null;

                    try
                    {
                        var download = new RestClient().DownloadData(new RestRequest(input.EmployeePhoto.Uri));

                        rawDataPart = new RawDataPart
                        {
                            Type       = "/RawData/PreviewImage",
                            MimeType   = input.EmployeePhoto.MimeType,
                            FileName   = input.EmployeePhoto.Uri,
                            RawDataMD5 = FileHashUtility.GetMD5Base64String(download),
                            RawData    = Convert.ToBase64String(download)
                        };

                        if (rawDataPart != null)
                        {
                            clue.Details.RawData.Add(rawDataPart);
                            clue.Data.EntityData.PreviewImage = new ImageReferencePart(rawDataPart, 255, 255);
                        }
                    }
                    catch (Exception exception)
                    {
                        _log.LogWarning(exception, "Could not download Trinet Photo Url for Employee");
                    }
                }

                if (!data.OutgoingEdges.Any())
                {
                    _factory.CreateEntityRootReference(clue, EntityEdgeType.PartOf);
                }
            }

            return(clue);
        }
예제 #6
0
        protected void PopulateContact(Clue clue, ContactModel contact, ExchangeService service)
        {
            var value = contact.Object;
            var data  = clue.Data.EntityData;

            data.Name        = value.ExPrintIfAvailable(v => v.DisplayName);
            data.CreatedDate = value.ExGetIfAvailable(v => v.DateTimeCreated, data.CreatedDate);
            data.Culture     = CultureInfo.InvariantCulture;

            this.PopulateItem(clue, contact, ExchangeSharedMailboxVocabulary.Contact, service);

            contact.LoadContactSchemaProperties();

            data.DisplayName = value.ExPrintIfAvailable(v => v.DisplayName) ?? data.DisplayName;

            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Alias]            = value.ExPrintIfAvailable(v => v.Alias);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.AssistantName]    = value.ExPrintIfAvailable(v => v.AssistantName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Birthday]         = value.ExPrintIfAvailable(v => v.Birthday);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.BusinessHomePage] = value.ExPrintIfAvailable(v => v.BusinessHomePage);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Companies]        = value.ExPrintIfAvailable(v => v.Companies);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompanyName]      = value.ExPrintIfAvailable(v => v.CompanyName);

            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.FullName]      = value.ExPrintIfAvailable(v => v.CompleteName?.FullName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.GivenName]     = value.ExPrintIfAvailable(v => v.CompleteName?.GivenName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.Initials]      = value.ExPrintIfAvailable(v => v.CompleteName?.Initials);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.MiddleName]    = value.ExPrintIfAvailable(v => v.CompleteName?.MiddleName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.NickName]      = value.ExPrintIfAvailable(v => v.CompleteName?.NickName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.Suffix]        = value.ExPrintIfAvailable(v => v.CompleteName?.Suffix);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.Surname]       = value.ExPrintIfAvailable(v => v.CompleteName?.Surname);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.Title]         = value.ExPrintIfAvailable(v => v.CompleteName?.Title);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.YomiGivenName] = value.ExPrintIfAvailable(v => v.CompleteName?.YomiGivenName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.CompleteName.YomiSurname]   = value.ExPrintIfAvailable(v => v.CompleteName?.YomiSurname);

            data.Properties[ExchangeSharedMailboxVocabulary.Contact.ContactSource] = value.ExPrintIfAvailable(v => v.ContactSource);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Department]    = value.ExPrintIfAvailable(v => v.Department);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.DirectoryId]   = value.ExPrintIfAvailable(v => v.DirectoryId);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.DisplayName]   = value.ExPrintIfAvailable(v => v.DisplayName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.FileAs]        = value.ExPrintIfAvailable(v => v.FileAs);

            data.Properties[ExchangeSharedMailboxVocabulary.Contact.FileAsMapping] = value.ExPrintIfAvailable(v => v.FileAsMapping != FileAsMapping.None ? v.FileAsMapping.ToString() : null);

            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Generation]         = value.ExPrintIfAvailable(v => v.Generation);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.GivenName]          = value.ExPrintIfAvailable(v => v.GivenName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.HasPicture]         = value.ExPrintIfAvailable(v => v.HasPicture);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Initials]           = value.ExPrintIfAvailable(v => v.Initials);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.JobTitle]           = value.ExPrintIfAvailable(v => v.JobTitle);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Manager]            = value.ExPrintIfAvailable(v => v.Manager);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.MiddleName]         = value.ExPrintIfAvailable(v => v.MiddleName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Mileage]            = value.ExPrintIfAvailable(v => v.Mileage);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.NickName]           = value.ExPrintIfAvailable(v => v.NickName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Notes]              = value.ExPrintIfAvailable(v => v.Notes);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.OfficeLocation]     = value.ExPrintIfAvailable(v => v.OfficeLocation);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneticFirstName]  = value.ExPrintIfAvailable(v => v.PhoneticFirstName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneticFullName]   = value.ExPrintIfAvailable(v => v.PhoneticFullName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneticLastName]   = value.ExPrintIfAvailable(v => v.PhoneticLastName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.PostalAddressIndex] = value.ExPrintIfAvailable(v => v.PostalAddressIndex);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Profession]         = value.ExPrintIfAvailable(v => v.Profession);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.SpouseName]         = value.ExPrintIfAvailable(v => v.SpouseName);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.Surname]            = value.ExPrintIfAvailable(v => v.Surname);
            data.Properties[ExchangeSharedMailboxVocabulary.Contact.WeddingAnniversary] = value.ExPrintIfAvailable(v => v.WeddingAnniversary);

            // EmailAddresses
            try
            {
                var emails         = contact.GetEmailAddresses();
                var filteredEmails = contact.GetSmtpEmailAddresses(emails).ToList();

                if (filteredEmails.Any())
                {
                    data.Properties[ExchangeSharedMailboxVocabulary.Contact.EmailAddress] = filteredEmails.First();

                    if (filteredEmails.Count > 1)
                    {
                        data.Properties[ExchangeSharedMailboxVocabulary.Contact.EmailAddresses] = string.Join(";", filteredEmails);
                    }

                    data.Aliases.AddRange(filteredEmails);
                }

                clue.Data.EntityData.Codes.AddRange(contact.CreateEntityCodesFromEmailAddresses(emails));
            }
            catch (ServiceObjectPropertyException e)
            {
                this.state.Log.Warn(() => "Could not get email addresses", e);
            }

            // PhoneNumbers
            {
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.AssistantPhone]   = GetPhoneNumber(value, PhoneNumberKey.AssistantPhone);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.BusinessFax]      = GetPhoneNumber(value, PhoneNumberKey.BusinessFax);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.BusinessPhone]    = GetPhoneNumber(value, PhoneNumberKey.BusinessPhone);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.BusinessPhone2]   = GetPhoneNumber(value, PhoneNumberKey.BusinessPhone2);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.Callback]         = GetPhoneNumber(value, PhoneNumberKey.Callback);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.CarPhone]         = GetPhoneNumber(value, PhoneNumberKey.CarPhone);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.CompanyMainPhone] = GetPhoneNumber(value, PhoneNumberKey.CompanyMainPhone);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.HomeFax]          = GetPhoneNumber(value, PhoneNumberKey.HomeFax);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.HomePhone]        = GetPhoneNumber(value, PhoneNumberKey.HomePhone);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.HomePhone2]       = GetPhoneNumber(value, PhoneNumberKey.HomePhone2);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.Isdn]             = GetPhoneNumber(value, PhoneNumberKey.Isdn);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.MobilePhone]      = GetPhoneNumber(value, PhoneNumberKey.MobilePhone);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.OtherFax]         = GetPhoneNumber(value, PhoneNumberKey.OtherFax);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.BusinessFax]      = GetPhoneNumber(value, PhoneNumberKey.BusinessFax);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.Pager]            = GetPhoneNumber(value, PhoneNumberKey.Pager);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.OtherTelephone]   = GetPhoneNumber(value, PhoneNumberKey.OtherTelephone);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.RadioPhone]       = GetPhoneNumber(value, PhoneNumberKey.RadioPhone);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.Telex]            = GetPhoneNumber(value, PhoneNumberKey.Telex);
                data.Properties[ExchangeSharedMailboxVocabulary.Contact.PhoneNumbers.TtyTddPhone]      = GetPhoneNumber(value, PhoneNumberKey.TtyTddPhone);
            }

            // DirectoryPhoto
            try
            {
                var version    = (int)contact.Service.RequestedServerVersion;
                var additional = new List <PropertyDefinitionBase>()
                {
                    ContactSchema.Photo
                };
                var filtered = additional.Where(p => ((int)p.Version) <= version).ToArray();

                if (filtered.Any())
                {
                    var tmp = new PropertySet(BasePropertySet.FirstClassProperties, filtered.Concat(new[] { ItemSchema.Attachments }));

                    if (value.Id != null)
                    {
                        value.ExLoad(this.state, tmp);
                    }

                    var directoryPhoto = value.ExGetIfAvailable(v => v.DirectoryPhoto, null);

                    if (directoryPhoto != null)
                    {
                        using (var stream = new MemoryStream(directoryPhoto))
                        {
                            var mimeType = FileCrawlingUtility.DetectMimeType(new FileInfo("PreviewImage"), new DataPart(), stream, this.state);

                            if (mimeType.FileDescriptor.Category == FileCategory.ImageBitmap)
                            {
                                var rawDataPart = new RawDataPart()
                                {
                                    Type       = "/RawData/PreviewImage",
                                    MimeType   = mimeType.Code,
                                    FileName   = "preview_{0}".FormatWith(data.OriginEntityCode.Key),
                                    RawDataMD5 = FileHashUtility.GetMD5Base64String(directoryPhoto),
                                    RawData    = Convert.ToBase64String(directoryPhoto)
                                };

                                clue.Details.RawData.Add(rawDataPart);

                                data.PreviewImage = new ImageReferencePart(rawDataPart);
                            }
                            else
                            {
                                this.state.Log.Info(() => $"DirectoryPhoto is not an image: {mimeType.Code}");
                            }
                        }
                    }
                }

                if (value.Attachments != null)
                {
                    var contactPhotos = value.Attachments.Where(a => a is FileAttachment && ((FileAttachment)a).IsContactPhoto).Cast <FileAttachment>().ToList();
                    var contactPhoto  = contactPhotos.FirstOrDefault();

                    if (contactPhoto != null)
                    {
                        using (var tempFile = new TemporaryFile(contactPhoto.Name))
                        {
                            contactPhoto.ExLoad(this.state, tempFile.FilePath);

                            var mimeType = tempFile.FileInfo.ToMimeType();

                            using (var stream = File.OpenRead(tempFile.FilePath))
                            {
                                mimeType = FileCrawlingUtility.DetectMimeType(tempFile.FileInfo, new DataPart(), stream, this.state);
                            }

                            if (mimeType.FileDescriptor.Category == FileCategory.ImageBitmap)
                            {
                                using (var stream = File.OpenRead(tempFile.FilePath))
                                {
                                    var bytes = stream.ToArray();

                                    var rawDataPart = new RawDataPart()
                                    {
                                        Type       = "/RawData/PreviewImage",
                                        MimeType   = mimeType.Code,
                                        FileName   = "preview_{0}".FormatWith(data.OriginEntityCode.Key),
                                        RawDataMD5 = FileHashUtility.GetMD5Base64String(bytes),
                                        RawData    = Convert.ToBase64String(bytes)
                                    };

                                    clue.Details.RawData.Add(rawDataPart);

                                    data.PreviewImage = new ImageReferencePart(rawDataPart);
                                }
                            }
                            else
                            {
                                this.state.Log.Info(() => $"ContactPhoto is not an image: {mimeType.Code}");
                            }
                        }
                    }
                }
            }
            catch (OperationCanceledException)
            {
            }
            catch (Exception e)
            {
                this.state.Log.Warn(() => "Could not get DirectoryPhoto", e);
            }
        }
예제 #7
0
        protected override Clue MakeClueImpl(Candidate input, Guid id)
        {
            var clue = _factory.Create("/Candidate", input.Id.ToString(), id);
            var data = clue.Data.EntityData;

            var vocab = new CandidateVocabulary();

            if (!string.IsNullOrEmpty(input.FirstName) && !string.IsNullOrEmpty(input.LastName))
            {
                data.Name = string.Format("{0}{1}", input.FirstName, input.LastName);
            }

            DateTimeOffset modifiedDate;

            if (DateTimeOffset.TryParse(input.UpdatedAt.ToString(), out modifiedDate))
            {
                data.ModifiedDate = modifiedDate;
            }

            DateTimeOffset createdDate;

            if (DateTimeOffset.TryParse(input.CreatedAt.ToString(), out createdDate))
            {
                data.CreatedDate = createdDate;
            }

            if (input.Tags != null)
            {
                foreach (var tag in input.Tags)
                {
                    data.Tags.Add(new Tag(tag.ToString()));
                }
            }

            if (input.SocialMediaAddresses != null)
            {
                foreach (var socialMediaAddress in input.SocialMediaAddresses)
                {
                    data.Aliases.Add(socialMediaAddress.ToString());
                }
            }

            if (input.PhoneNumbers != null)
            {
                foreach (var phoneNumbers in input.PhoneNumbers)
                {
                    data.Aliases.Add(phoneNumbers.ToString());
                }
            }

            if (input.EmailAddresses != null)
            {
                foreach (var emailAddress in input.EmailAddresses)
                {
                    var code = new EntityCode("/Candidate", "CluedIn", emailAddress.Value);
                    data.Codes.Add(code);
                }
            }

            if (input.Educations != null)
            {
                foreach (var education in input.Educations)
                {
                    _factory.CreateOutgoingEntityReference(clue, "/School", EntityEdgeType.Attended, education, education.Id.ToString());
                }
            }

            //if (input.Employments != null)
            //    foreach (var employment in input.Employments)
            //    {
            //        _factory.CreateOutgoingEntityReference(clue, "/Placement", EntityEdgeType.Attended, employment, employment.Id.ToString());
            //    }

            if (input.Company != null)
            {
                _factory.CreateOutgoingEntityReference(clue, EntityType.Organization, EntityEdgeType.Attended, input, input.Company);
            }

            if (input.Attachments != null)
            {
                foreach (var attachment in input.Attachments)
                {
                    //You might need to parse this.
                    _factory.CreateOutgoingEntityReference(clue, EntityType.Files.File, EntityEdgeType.PartOf, attachment, attachment.Url.ToString());
                }
            }

            if (input.Applications != null)
            {
                foreach (var application in input.ApplicationIds)
                {
                    _factory.CreateOutgoingEntityReference(clue, "/Application", EntityEdgeType.For, application, application.ToString());
                }
            }

            if (input.Addresses != null)
            {
                foreach (var address in input.Addresses)
                {
                    _factory.CreateOutgoingEntityReference(clue, EntityType.Location, EntityEdgeType.For, address, address.Value.ToString());
                }
            }

            data.Properties[vocab.Title]    = input.Title.PrintIfAvailable();
            data.Properties[vocab.PhotoUrl] = input.PhotoUrl.PrintIfAvailable();

            if (input.PhotoUrl != null)
            {
                RawDataPart rawDataPart = null;

                try
                {
                    var download = new RestClient().DownloadData(new RestRequest(input.PhotoUrl.ToString()));

                    rawDataPart = new RawDataPart
                    {
                        Type       = "/RawData/PreviewImage",
                        MimeType   = CluedIn.Core.FileTypes.MimeType.Jpeg.Code,
                        FileName   = input.PhotoUrl.ToString(),
                        RawDataMD5 = FileHashUtility.GetMD5Base64String(download),
                        RawData    = Convert.ToBase64String(download)
                    };

                    if (rawDataPart != null)
                    {
                        clue.Details.RawData.Add(rawDataPart);
                        clue.Data.EntityData.PreviewImage = new ImageReferencePart(rawDataPart, 255, 255);
                    }
                }
                catch (Exception exception)
                {
                    _log.LogWarning(exception, "Could not download Greenhouse Photo Url for Candidate");
                }
            }

            data.Properties[vocab.LastName]     = input.LastName.PrintIfAvailable();
            data.Properties[vocab.LastActivity] = input.LastActivity.ToString().PrintIfAvailable();
            data.Properties[vocab.Coordinator]  = input.Coordinator.PrintIfAvailable();
            data.Properties[vocab.CanEmail]     = input.CanEmail.PrintIfAvailable();

            data.Properties[vocab.FirstName] = input.FirstName.PrintIfAvailable();


            if (!data.OutgoingEdges.Any())
            {
                _factory.CreateEntityRootReference(clue, EntityEdgeType.PartOf);
            }

            return(clue);
        }
예제 #8
0
        protected override Clue MakeClueImpl([NotNull] FileMetadata input, Guid accountId)
        {
            if (input == null)
            {
                throw new ArgumentNullException(nameof(input));
            }

            var clue = _factory.Create(EntityType.Files.File, input.PathLower, accountId);

            clue.ValidationRuleSuppressions.Add(Constants.Validation.Rules.DATA_001_File_MustBeIndexed);

            var data = clue.Data.EntityData;

            var value = input.AsFile;

            if (value.Name != null)
            {
                data.Name        = value.Name;
                data.DisplayName = value.Name;
                data.Properties[DropBoxVocabulary.File.ItemName] = value.Name;
            }

            data.DocumentSize = (long)value.Size;
            data.ModifiedDate = value.ServerModified;

            try
            {
                var url = _uriBuilder.GetUri(value);
                data.Uri = url;
                data.Properties[DropBoxVocabulary.File.EditUrl] = url.ToString().Replace("www.dropbox.com/", "www.dropbox.com/ow/msft/edit/").Replace("?preview=", "/").Replace("+", "%20");
            }
            catch (Exception exc)
            {
                _log.Warn(() => "Could not create ShareTask Dropbox File", exc); //Handle error
            }

            data.Properties[DropBoxVocabulary.File.Bytes]       = value.Size.PrintIfAvailable();
            data.Properties[DropBoxVocabulary.File.ClientMTime] = value.ClientModified.PrintIfAvailable();


            if (value.PathLower != null)
            {
                data.Properties[DropBoxVocabulary.File.Path] = value.PathLower.PrintIfAvailable();
                _factory.CreateOutgoingEntityReference(clue, EntityType.Files.Directory, "Parent", value, "/" + VirtualPathUtility.GetDirectory(value.PathLower).Trim(_trimChars));
            }

            data.Properties[DropBoxVocabulary.File.Rev] = value.Rev.PrintIfAvailable();

            if (value.Rev != null)
            {
                data.Revision = value.Rev.ToString(CultureInfo.InvariantCulture);
            }

            data.Properties[DropBoxVocabulary.File.ParentSharedFolderId] = value.ParentSharedFolderId.PrintIfAvailable();
            _factory.CreateOutgoingEntityReference(clue, EntityType.Provider.Root, EntityEdgeType.ManagedIn, _providerRoot, _providerRoot.OriginEntityCode.Value);



            var shouldIndexFile = _jobData.FileSizeLimit == null || _jobData.FileSizeLimit.Value == 0 || (long)value.Size < _jobData.FileSizeLimit.Value;

            var client = _clientFactory.CreateNew(_jobData);

            if (shouldIndexFile)
            {
                try
                {
                    var indexer = new FileIndexer(client, _state, _context);
                    Task.Run(() => indexer.Index(value, clue).ConfigureAwait(false));
                }
                catch (OperationCanceledException)
                {
                }
                catch (Exception exc)
                {
                    _log.Warn(() => "Could not index Dropbox File", exc); //Handle error
                }
            }

            if (data.PreviewImage == null)
            {
                var extension = string.Empty;

                try
                {
                    extension = new FileInfo(input.Name).Extension;
                }
                catch (ArgumentException)
                {
                }

                var allowedExtensions = new[]
                {
                    ".jpg", ".jpeg", ".tif", ".tiff", ".png", ".gif", ".bmp"
                }.ToHashSet();

                if (!string.IsNullOrEmpty(extension) && allowedExtensions.Contains(extension.ToLowerInvariant()))
                {
                    try
                    {
                        var thumbnail = client.GetThumbnailAsync(value.PathLower, ThumbnailFormat.Jpeg.Instance, ThumbnailSize.W1024h768.Instance).Result;

                        var bytes       = thumbnail.GetContentAsByteArrayAsync().Result;
                        var rawDataPart = new RawDataPart
                        {
                            Type       = "/RawData/PreviewImage",
                            MimeType   = CluedIn.Core.FileTypes.MimeType.Jpeg.Code,
                            FileName   = "preview_{0}".FormatWith(data.OriginEntityCode.Key),
                            RawDataMD5 = FileHashUtility.GetMD5Base64String(bytes),
                            RawData    = Convert.ToBase64String(bytes)
                        };

                        clue.Details.RawData.Add(rawDataPart);

                        data.PreviewImage = new ImageReferencePart(rawDataPart);
                    }
                    catch (OperationCanceledException)
                    {
                    }
                    catch (DropboxException exc)
                    {
                        _log.Warn(new { FileExtention = extension }, () => "Could not get thumbnail from Dropbox: " + extension, exc);
                    }
                }
            }

            return(clue);
        }