$numeric_operator=[ [ 'name' => '=', 'value' => '=' ], [ 'name' => '!=', 'value' => '!=' ], [ 'name' => '>', 'value' => '>' ], [ 'name' => '<', 'value' => '<' ], [ 'name' => '>=', 'value' => '>=' ], [ 'name' => '<=', 'value' => '<=' ], [ 'name' => 'between', 'value' => 'between' ], [ 'name' => 'not between', 'value' => 'not_between' ], ]; $criteria = [ 'lead_contact_info' => [ 'contacts' => [ 'information_points' => 5, 'evaluation_points' => 0, 'max_points' => 5, 'weight' => 4, 'has_evaluation_edit_allow'=>false, ], 'primary_email_address' => [ 'information_points' => 5, 'evaluation_points' => 0, 'max_points' => 5, 'weight' => 5, 'has_evaluation_edit_allow'=>false, ], 'phone_number' => [ 'information_points' => 3, 'evaluation_points' => 0, 'max_points' => 3, 'weight' => 3, 'has_evaluation_edit_allow'=>false, ], 'location' => [ 'information_points' => 2, 'evaluation_points' => 3, 'max_points' => 5, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'text', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ] ], 'job_title' => [ 'information_points' => 2, 'evaluation_points' => 3, 'max_points' => 5, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'text', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ] ], 'lead_source' => [ 'information_points' => 1, 'evaluation_points' => 2, 'max_points' => 3, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'dropdown', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ], 'options'=>$lead_source ], ], 'lead_company_info' => [ 'company_name' => [ 'information_points' => 3, 'evaluation_points' => 0, 'max_points' => 3, 'weight' => 3, 'has_evaluation_edit_allow'=>false, ], 'company_size' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 4, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'annual_revenue' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 5, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'industry' => [ 'information_points' => 2, 'evaluation_points' => 5, 'max_points' => 7, 'weight' => 4, 'type' => 'dropdown', 'has_evaluation_edit_allow'=>true, 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ], 'options' => $industry ], ], 'lead_bant' => [ 'budget_money' => [ 'information_points' => 2, 'evaluation_points' => 0, 'max_points' => 10, 'weight' => 4, 'type' => 'dropdown', 'has_evaluation_edit_allow'=>true, 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ], 'options' => $budget ], 'authority' => [ 'information_points' => 0, 'evaluation_points' => 10, 'max_points' => 10, 'weight' => 5, 'has_evaluation_edit_allow'=>true, 'type' => 'dropdown', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ], 'options' => $authority ], 'need' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 5, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'dropdown', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ], 'options' => $need ], 'timeline' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 5, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'dropdown', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ], 'options' => $timeline ], ], 'fit_with_product' => [ 'need_alignment' => [ 'information_points' => 0, 'evaluation_points' => 10, 'max_points' => 10, 'weight' => 4, 'has_evaluation_edit_allow'=>true, ], 'target_customer_profile' => [ 'information_points' => 2, 'evaluation_points' => 5, 'max_points' => 7, 'weight' => 3, 'has_evaluation_edit_allow'=>true, ], ], 'buyer_engagement' => [ 'engagement_level' => [ 'information_points' => 0, 'evaluation_points' => 10, 'max_points' => 10, 'weight' => 3, 'has_evaluation_edit_allow'=>true, ], 'seasons_engaged' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 4, 'weight' => 2, 'has_evaluation_edit_allow'=>true, ], 'page_viewed' => [ 'information_points' => 2, 'evaluation_points' => 3, 'max_points' => 5, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'page_revisits' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 3, 'weight' => 1, 'has_evaluation_edit_allow'=>false, ], 'time_on_page' => [ 'information_points' => 1, 'evaluation_points' => 2, 'max_points' => 3, 'weight' => 1, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'scroll_depth' => [ 'information_points' => 1, 'evaluation_points' => 2, 'max_points' => 3, 'weight' => 1, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'clicks' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 3, 'weight' => 1, 'has_evaluation_edit_allow'=>true, ], 'element_clicked' => [ 'information_points' => 2, 'evaluation_points' => 3, 'max_points' => 5, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'time_untouched' => [ 'information_points' => 0, 'evaluation_points' => -5, 'max_points' => -10, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'text', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ] ], ], 'buyer_interaction' => [ 'email_open_rate' => [ 'information_points' => 1, 'evaluation_points' => 2, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'chat_response_rate' => [ 'information_points' => 1, 'evaluation_points' => 2, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'email_response_rate' => [ 'information_points' => 1, 'evaluation_points' => 2, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'order_value' => [ 'information_points' => 0, 'evaluation_points' => 5, 'max_points' => 10, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'order_frequency' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 4, 'weight' => 2, 'has_evaluation_edit_allow'=>true, ], 'conversion_rate' => [ 'information_points' => 0, 'evaluation_points' => 5, 'max_points' => 10, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'quote_request' => [ 'information_points' => 0, 'evaluation_points' => 5, 'max_points' => 10, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], ], 'buyer_engagement_with_platform' => [ 'buyer_type' => [ 'information_points' => 0, 'evaluation_points' => 2, 'max_points' => 5, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'overall_engagement_score' => [ 'information_points' => 0, 'evaluation_points' => 10, 'max_points' => 10, 'weight' => 2, 'has_evaluation_edit_allow'=>true, ], 'buyer_journey_stage' => [ 'information_points' => 0, 'evaluation_points' => 3, 'max_points' => 5, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'purchase_history' => [ 'information_points' => 1, 'evaluation_points' => 4, 'max_points' => 10, 'weight' => 3, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'buying_frequency' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 4, 'weight' => 2, 'has_evaluation_edit_allow'=>true, ], 'spending_patterns' => [ 'information_points' => 0, 'evaluation_points' => 2, 'max_points' => 5, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'review_rating' => [ 'information_points' => 0, 'evaluation_points' => 3, 'max_points' => 5, 'weight' => 1, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'wishlist_items' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 3, 'weight' => 1, 'has_evaluation_edit_allow'=>true, ], 'search_term' => [ 'information_points' => 1, 'evaluation_points' => 1, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'text', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ] ], 'quote_request_repeat' => [ 'information_points' => 1, 'evaluation_points' => 1, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>false, ], 'time_spent_on_p latform ' => [ 'information_points' => 1, 'evaluation_points' => 1, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>true, ], 'communication_channel ' => [ 'information_points' => 1, 'evaluation_points' => 1, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'text', 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ] ], ], 'buyer_Int_actions' => [ 'wishlist' => [ 'information_points' => 0, 'evaluation_points' => 2, 'max_points' => 5, 'weight' => 2, 'type' => 'text', 'has_evaluation_edit_allow'=>false, 'operators' => [ ['name' => 'is', 'value' => '='], ['name' => 'is not', 'value' => '!='] ] ], 'product_image_clicks' => [ 'information_points' => 0, 'evaluation_points' => 10, 'max_points' => 10, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'product_spec_tap_view' => [ 'information_points' => 0, 'evaluation_points' => 3, 'max_points' => 5, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'download_catalog_clicks' => [ 'information_points' => 1, 'evaluation_points' => 4, 'max_points' => 10, 'weight' => 3, 'has_evaluation_edit_allow'=>false, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'social_share_clicks' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 4, 'weight' => 2, 'has_evaluation_edit_allow'=>false, ], 'seller_review' => [ 'information_points' => 0, 'evaluation_points' => 2, 'max_points' => 5, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'seller_rate' => [ 'information_points' => 0, 'evaluation_points' => 3, 'max_points' => 5, 'weight' => 1, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'visit_store_link' => [ 'information_points' => 1, 'evaluation_points' => 0, 'max_points' => 3, 'weight' => 1, 'has_evaluation_edit_allow'=>false, ], 'company_profile_click' => [ 'information_points' => 1, 'evaluation_points' => 1, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>false, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'add_to_contacts_click' => [ 'information_points' => 1, 'evaluation_points' => 1, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>false, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'chat_with_seller' => [ 'information_points' => 1, 'evaluation_points' => 1, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>true, 'type' => 'numeric', 'operators' =>$numeric_operator, ], 'contact_seller ' => [ 'information_points' => 1, 'evaluation_points' => 1, 'max_points' => 6, 'weight' => 2, 'has_evaluation_edit_allow'=>false, ], ] ];