Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15750 | Rev 16643 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15750 Rev 15831
Línea 652... Línea 652...
652
                        J = Telefono	
652
                        J = Telefono	
653
                        K = Extensión	
653
                        K = Extensión	
654
                        L = Celular	
654
                        L = Celular	
655
                        M = Whatsapp	
655
                        M = Whatsapp	
656
                        N = Linkedin
656
                        N = Linkedin
-
 
657
                        O = Sector
Línea 657... Línea 658...
657
 
658
 
Línea 658... Línea 659...
658
                         */
659
                         */
Línea 682... Línea 683...
682
                        $whatsapp = isset($record['M']) ? trim(filter_var($record['M'], FILTER_SANITIZE_STRING)) : '';
683
                        $whatsapp = isset($record['M']) ? trim(filter_var($record['M'], FILTER_SANITIZE_STRING)) : '';
683
                        $whatsapp = preg_replace('/[^0-9]/', '', $whatsapp);
684
                        $whatsapp = preg_replace('/[^0-9]/', '', $whatsapp);
Línea 684... Línea 685...
684
 
685
 
685
 
-
 
-
 
686
 
Línea 686... Línea 687...
686
                        $linkedin = isset($record['N']) ? trim(filter_var($record['N'], FILTER_SANITIZE_URL)) : '';
687
                        $linkedin = isset($record['N']) ? trim(filter_var($record['N'], FILTER_SANITIZE_URL)) : '';
687
 
688
                        $sector = isset($record['O']) ? trim(filter_var($record['O'], FILTER_SANITIZE_STRING)) : '';
688
 
689
 
689
                        //||  empty($password)
690
                        //||  empty($password)
Línea 708... Línea 709...
708
                                'phone' => $phone,
709
                                'phone' => $phone,
709
                                'extension' => $extension,
710
                                'extension' => $extension,
710
                                'movil' => $movil,
711
                                'movil' => $movil,
711
                                'whatsapp' =>  $whatsapp,
712
                                'whatsapp' =>  $whatsapp,
712
                                'linkedin' => $linkedin,
713
                                'linkedin' => $linkedin,
-
 
714
                                'sector' => $sector,
713
                            ]);
715
                            ]);
714
                        }
716
                        }
715
                    }
717
                    }
Línea 790... Línea 792...
790
                    $phone = $record['phone'];
792
                    $phone = $record['phone'];
791
                    $extension = $record['extension'];
793
                    $extension = $record['extension'];
792
                    $movil = $record['movil'];
794
                    $movil = $record['movil'];
793
                    $whatsapp =  $record['whatsapp'];
795
                    $whatsapp =  $record['whatsapp'];
794
                    $linkedin = $record['linkedin'];
796
                    $linkedin = $record['linkedin'];
-
 
797
                    $sector = $record['sector'];
795
 
798
                    
796
 
799
                    
797
                    $discoveryContact = $discoveryContactMapper->fetchOneByCorporateEmail($email_company);
800
                    $discoveryContact = $discoveryContactMapper->fetchOneByCorporateEmail($email_company);
798
                    if ($discoveryContact) {
801
                    if ($discoveryContact) {
799
                        $duplicate_contacts++;
802
                        $duplicate_contacts++;
800
                    } else {
803
                    } else {
Línea 805... Línea 808...
805
                        $discoveryContact->last_name = $last_name;
808
                        $discoveryContact->last_name = $last_name;
806
                        $discoveryContact->corporate_email = $email_company;
809
                        $discoveryContact->corporate_email = $email_company;
807
                        $discoveryContact->personal_email = $email_personal;
810
                        $discoveryContact->personal_email = $email_personal;
808
                        $discoveryContact->company = $company;
811
                        $discoveryContact->company = $company;
809
                        $discoveryContact->position = $position;
812
                        $discoveryContact->position = $position;
-
 
813
                        $discoveryContact->sector = $sector;
810
                        $discoveryContact->country = $country;
814
                        $discoveryContact->country = $country;
811
                        $discoveryContact->state = $state;
815
                        $discoveryContact->state = $state;
812
                        $discoveryContact->city = $city;
816
                        $discoveryContact->city = $city;
813
                        $discoveryContact->phone = empty($phone) ? '' : '+' . $phone;
817
                        $discoveryContact->phone = empty($phone) ? '' : '+' . $phone;
814
                        $discoveryContact->phone_extension = $extension;
818
                        $discoveryContact->phone_extension = $extension;
815
                        $discoveryContact->celular = empty($movil) ? '' : '+' . $movil;
819
                        $discoveryContact->celular = empty($movil) ? '' : '+' . $movil;
816
                        $discoveryContact->whatsapp = empty($whatsapp) ? '' : '+' . $whatsapp;
820
                        $discoveryContact->whatsapp = empty($whatsapp) ? '' : '+' . $whatsapp;
817
                        $discoveryContact->linkedin = $linkedin;
821
                        $discoveryContact->linkedin = $linkedin;
-
 
822
                      
818
 
823
                        
819
                        if ($discoveryContactMapper->insert($discoveryContact)) {
824
                        if($discoveryContactMapper->insert($discoveryContact)) {
820
                            $new_contacts++;
825
                            $new_contacts++; 
821
 
826
                            
822
                            if ($discoveryContactInteractionType) {
827
                            if($discoveryContactInteractionType) {
823
 
828
                                
824
                                $discoveryContactInteraction = new DiscoveryContactInteraction();
829
                                $discoveryContactInteraction = new DiscoveryContactInteraction();
825
                                $discoveryContactInteraction->company_id = $currentCompany->id;
830
                                $discoveryContactInteraction->company_id = $currentCompany->id;
826
                                $discoveryContactInteraction->contact_id = $discoveryContact->id;
831
                                $discoveryContactInteraction->contact_id = $discoveryContact->id;
827
                                $discoveryContactInteraction->interaction_type_id = $discoveryContactInteractionType->id;
832
                                $discoveryContactInteraction->interaction_type_id = $discoveryContactInteractionType->id;
828
                                $discoveryContactInteraction->user_id = $currentUser->id;
833
                                $discoveryContactInteraction->user_id = $currentUser->id;