Coveo.TemplateCache.registerTemplate("ServiceNowQuestion", Coveo.HtmlTemplate.fromString("<div class=\"coveo-result-frame\">\n    <div class=\"coveo-result-cell\" style=\"vertical-align: top;\">\n        <div class=\"coveo-result-row\" style=\"margin-top:0;\">\n            <div class=\"coveo-result-cell\" style=\"vertical-align:bottom; font-size:16px\" role=\"heading\" aria-level=\"2\">\n                <a class=\"CoveoResultLink\"></a>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px;vertical-align:bottom\">\n                <span class=\"CoveoFieldValue\" data-field=\"@date\" data-text-caption=\"Updated: \" data-helper=\"dateTime\"\n                    data-html-value=\"false\" data-helper-options-include-time-if-this-week=\"false\"\n                    style=\"color:#6A7689;font-size:10px\"></span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\">\n            <div class=\"coveo-result-cell\">\n                <span\n                    style=\"border-style:solid;border-width:thin;border-color:#3E8D7C;border-radius:0px 10px 10px 0px;font-size:12px;background-color:#3E8D7C;color:white;padding:2px;padding-right:10px;padding-left:5px\">Question</span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snprofilename\" data-text-caption=\"Asked by \"\n                    style=\"padding-left:15px\"></span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\">\n            <div class=\"coveo-result-cell\">\n                <span class=\"CoveoFieldValue\" data-field=\"@snquestiondetails\" data-html-value=\"true\"\n                    data-text-caption=\"\"></span>\n            </div>\n            <div class=\"coveo-result-cell\"\n                style=\"width:150px;border-left:solid thin #CAD2D8; text-align:center\">\n                <span class=\"CoveoFieldValue\" data-field=\"@snviews\" data-text-caption=\"Views \"></span><br />\n                <span class=\"CoveoFieldValue\" data-field=\"@snvotes\" data-text-caption=\"Votes \"></span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\" style=\"padding-top:10px\">\n            <div class=\"coveo-result-cell\" style=\"border:solid thin #CAD2D8;padding:10px\">\n                <span class=\"CoveoText\" data-value=\"Top Answer\" style=\"font-weight:bold\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@sntopansweranswer\" data-html-value=\"true\"></span>\n            </div>\n        </div>\n    </div>\n</div>",{"condition":null,"layout":"list","fieldsToMatch":[{"field":"filetype","values":["kb_social_qa_question"]}],"mobile":null,"role":null}),true, true)
Coveo.TemplateCache.registerTemplate("ServiceNowKnowledge", Coveo.HtmlTemplate.fromString("<div class=\"coveo-result-frame\">\n    <div class=\"coveo-result-cell\" style=\"vertical-align: top;\">\n        <div class=\"coveo-result-row\" style=\"margin-top:0;\">\n            <div class=\"coveo-result-cell\" style=\"vertical-align:top;font-size:16px;\" role=\"heading\" aria-level=\"2\">\n                <a class=\"CoveoResultLink\"></a>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px; text-align:center; font-size:12px\">\n                <div class=\"coveo-result-row\">\n                    <span class=\"CoveoFieldValue\" data-field=\"@date\" data-helper=\"date\"></span>\n                </div>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\">\n            <div class=\"coveo-result-cell\" style=\"vertical-align:middle\">\n                <span style=\"border-style:solid;border-width:thin;border-color:#3A7EE7;border-radius:0px 10px 10px 0px;font-size:12px;background-color:#3A7EE7;color:white;padding:2px;padding-right:10px;padding-left:5px\">Knowledge</span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snauthorname\" data-text-caption=\"By \" style=\"padding-right:15px;padding-left:10px\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snkbcategorylabel\" data-text-caption=\"Category \" data-helper=\"javascriptEncode\"></span>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px\">\n                <span class=\"CoveoQuickview\" style=\"font-size:10px;color:black;border-width:thin;border-color:grey;border-style:solid;border-radius:16px;width:100px;padding-right:10px;padding-left:10px;padding-top:2px;padding-bottom:2px;text-decoration:none\">QUICK VIEW</span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\">\n            <div class=\"coveo-result-cell\" style=\"padding-right:15px;padding-top:10px;padding-bottom:10px\">\n                <span class=\"CoveoExcerpt\"></span>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:150px;border-left:solid thin #CAD2D8; text-align:center;vertical-align:middle\">\n                <span class=\"CoveoFieldValue\" data-field=\"@snsysviewcount\" data-text-caption=\"Views      \"></span><br/>\n                <span class=\"CoveoFieldValue\" data-field=\"@snrating\" data-text-caption=\"Rating     \" style=\"padding-top:10px\"></span>\n            </div>\n        </div>\n    </div>\n</div>\n",{"condition":null,"layout":"list","fieldsToMatch":[{"field":"filetype","values":["kb_knowledge"]}],"mobile":null,"role":null}),true, true)
Coveo.TemplateCache.registerTemplate("ServiceNowIncident", Coveo.HtmlTemplate.fromString("<div class=\"coveo-result-frame\">\n    <div class=\"coveo-result-cell\" style=\"vertical-align: top;\">\n        <div class=\"coveo-result-row\" style=\"margin-top:0;\">\n            <div class=\"coveo-result-cell\" style=\"vertical-align:bottom; font-size:16px\" role=\"heading\" aria-level=\"2\">\n                <a class=\"CoveoResultLink\" data-title-template=\"[${raw.snnumber}] ${raw.title} \">\n                </a>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px;vertical-align:bottom\">\n                <span class=\"CoveoFieldValue\" data-field=\"@date\" data-text-caption=\"Updated: \" data-helper=\"dateTime\" data-html-value=\"false\"\n                data-helper-options-include-time-if-this-week=\"false\" style=\"color:#6A7689;font-size:10px\" data-helper-options-include-time-if-today=\"false\"></span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\" style=\"margin-top:10px;\">\n            <div class=\"coveo-result-cell\">\n                <span style=\"border-style:solid;border-width:thin;border-color:#801B0F;border-radius:0px 10px 10px 0px;font-size:12px;background-color:#801B0F;color:white;padding:2px;padding-right:10px;padding-left:5px;margin-right:-12px\">Incident</span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snstate\" style=\"border:solid thin #801B0F;border-radius:0px 10px 10px 0px;font-size:12px;color:black;padding-left:15px;padding-right:10px;padding-top:2px;padding-bottom:2px\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@sncmdbciname\" data-text-caption=\"Product \" style=\"padding-left:10px\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@sncalleridname\" data-text-caption=\"Opened by \" style=\"padding-left:10px\"></span>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px\">\n                <span class=\"CoveoQuickview\" style=\"font-size:10px;color:black;border-width:thin;border-color:grey;border-style:solid;border-radius:16px;width:100px;padding-right:10px;padding-left:10px;padding-top:2px;padding-bottom:2px;text-decoration:none\">QUICK VIEW</span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\" style=\"margin-top:10px;\">\n            <div class=\"coveo-result-cell\" style=\"padding-right:15px;padding-top:10px;padding-bottom:10px\">\n                <span class=\"CoveoExcerpt\"></span>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:150px;border-left:solid thin #CAD2D8;text-align:center\">\n                <span class=\"CoveoFieldValue\" data-field=\"@snpriority\" data-text-caption=\"Priority\" style=\"padding-top:10px\"></span><br/>\n                <span class=\"CoveoFieldValue\" data-field=\"@snurgency\" data-text-caption=\"Urgency\" style=\"padding-top:10px\"></span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\" style=\"margin-top:10px;\">\n            <div class=\"coveo-result-cell\" style=\"border:solid thin #CAD2D8;padding:10px\">\n                <span class=\"CoveoFieldValue\" data-field=\"@sncategory\" data-text-caption=\"Category\" style=\"padding-right:10px\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snassignedtoname\" data-text-caption=\"Assigned to\" style=\"padding-right:15px\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snclosedbyname\" data-text-caption=\"Closed  by\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snclosedat\" data-helper=\"dateTime\" data-html-value=\"false\" data-text-caption=\"on\"></span>\n                <div class=\"coveo-result-cell\" style=\"padding:5px\"></div>\n                <table class=\"CoveoFieldTable\" data-minimized-title=\"Details\" data-minimized-by-default=\"true\" data-expanded-title=\"Details\">\n                    <tbody>\n                        <tr data-caption=\"Work Notes\" data-field=\"@sncommentsandworknotes\" data-html-value=\"true\" data-split-values=\"true\" data-separator=\"Checklist item:\"></tr>\n                    </tbody>\n                </table>\n            </div>\n        </div>\n    </div>\n</div>\n",{"condition":null,"layout":"list","fieldsToMatch":[{"field":"filetype","values":["incident"]}],"mobile":null,"role":null}),true, true)
Coveo.TemplateCache.registerTemplate("ServiceNowHRCase", Coveo.HtmlTemplate.fromString("<div class=\"coveo-result-frame\">\n    <div class=\"coveo-result-cell\" style=\"vertical-align: top;\">\n        <div class=\"coveo-result-row\" style=\"margin-top:0;\">\n            <div class=\"coveo-result-cell\" style=\"vertical-align:bottom; font-size:16px\" role=\"heading\" aria-level=\"2\">\n                <a class=\"CoveoResultLink\" data-title-template=\"[${raw.snnumber}] ${raw.title} \">\n                </a>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px;vertical-align:bottom\">\n                <span class=\"CoveoFieldValue\" data-field=\"@date\" data-text-caption=\"Updated: \" data-helper=\"dateTime\" data-html-value=\"false\" data-helper-options-include-time-if-this-week=\"false\" style=\"color:#6A7689;font-size:10px\"></span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\">\n            <div class=\"coveo-result-cell\">\n                <span style=\"border-style:solid;border-width:thin;border-color:#DF9140;border-radius:0px 10px 10px 0px;font-size:12px;background-color:#DF9140;color:white;padding:2px;padding-right:10px;padding-left:5px;margin-right:-12px\">HR Case</span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snstate\" style=\"border:solid thin #DF9140;border-radius:0px 10px 10px 0px;font-size:12px;color:black;padding-left:15px;padding-right:10px;padding-top:2px;padding-bottom:2px;text-decoration:none\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snopenedforname\" data-value=\"@snopenedforsysid\" data-text-caption=\"Requested by\" style=\"padding-left:10px;padding-right:5px\" data-helper=\"anchor\" data-html-value=\"true\" data-helper-options-target=\"@snopenedforsysid\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snopenedbytitle\"></span>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px\">\n                <span class=\"CoveoQuickview\" style=\"font-size:10px;color:black;border-width:thin;border-color:grey;border-style:solid;border-radius:16px;width:100px;padding-right:10px;padding-left:10px;padding-top:2px;padding-bottom:2px;text-decoration:none\">QUICK VIEW</span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\"></div>\n        <div class=\"coveo-result-row\">\n            <div class=\"coveo-result-cell\" style=\"padding-right:15px;padding-top:10px;padding-bottom:10px\">\n                <span class=\"CoveoExcerpt\"></span>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:150px;border-left:solid thin #CAD2D8; text-align:center\">\n                <span class=\"CoveoFieldValue\" data-field=\"@snpriority\" data-text-caption=\"Priority\" style=\"padding-top:10px\"></span><br/>\n                <span class=\"CoveoFieldValue\" data-field=\"@snurgency\" data-text-caption=\"Urgency\" style=\"padding-top:10px\"></span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\" style=\"padding-top:10px\">\n            <div class=\"coveo-result-cell\" style=\"border:solid thin #CAD2D8;padding:10px\">\n                <span class=\"CoveoFieldValue\" data-field=\"@snhrservicename\" data-text-caption=\"Category\" style=\"padding-right:10px\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snassignedtoname\" data-text-caption=\"Assigned to\" style=\"padding-right:15px\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snclosedbyname\" data-text-caption=\"Closed  by\"></span>\n                <span class=\"CoveoFieldValue\" data-field=\"@snclosedat\" data-helper=\"dateTime\" data-html-value=\"false\" data-text-caption=\"on\"></span>\n                <div class=\"coveo-result-cell\" style=\"padding:5px\"></div>\n                <table class=\"CoveoFieldTable\" data-minimized-title=\"Details\" data-minimized-by-default=\"true\" data-expanded-title=\"Details\">\n                    <tbody>\n                        <tr data-caption=\"Work Notes\" data-field=\"@snworknotes\" data-html-value=\"true\" data-split-values=\"true\" data-separator=\"Checklist item:\"></tr>\n                    </tbody>\n                </table>\n            </div>\n        </div>\n    </div>\n</div>",{"condition":null,"layout":"list","fieldsToMatch":[{"field":"filetype","values":["sn_hr_core_case"]}],"mobile":null,"role":null}),true, true)
Coveo.TemplateCache.registerTemplate("ServiceNowCatalog", Coveo.HtmlTemplate.fromString("<div class=\"coveo-result-frame\">\n    <div class=\"coveo-result-cell\" style=\"vertical-align:bottom;\">\n        <div class=\"coveo-result-row\">\n            <div class=\"coveo-result-cell\" role=\"heading\" aria-level=\"2\">\n                <div class=\"CoveoResultLink\"></div>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px;text-align:center;vertical-align:bottom;font-size:12px\">\n                <span class=\"CoveoFieldValue\" data-field=\"@sndeliverytime\" data-text-caption=\"Delivery Time\"></span>\n            </div>\n        </div>\n        <div class=\"coveo-result-row\">\n            <div class=\"coveo-result-cell\" style=\"width:70px;\">\n                <div class=\"CoveoIcon\" style=\"margin-top: 10px\" data-with-label=\"false\" data-condition-field-not-snpicture=\"\"></div>\n                <span class=\"CoveoImageFieldValue\" data-field=\"@snpicture\" data-src-template=\"/${raw.snpicture}\" data-height=\"60px\" style=\"font-size:12px\"></span>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"padding:15px\">\n                <span class=\"CoveoExcerpt\"></span>\n            </div>\n            <div class=\"coveo-result-cell\" style=\"width:120px; text-align:right; vertical-align:top\">\n                <div class=\"CoveoFieldValue\" data-field=\"@snprice\" data-text-caption=\"Price \" style=\"font-size:12px\" data-condition-field-snignoreprice=\"false\"></div>\n                <span class=\"CoveoFieldValue\" data-field=\"@sncategorysysname\" data-text-caption=\"Category \" style=\"font-size:12px\"></span>\n                <div class=\"CoveoResultLink\" style=\"font-size:12px;background-color:#599DF8;color:white;border-width:medium;border-color:3F83E7;border-style:solid;border-radius:5px;width:122px;text-align:center;padding-top:10px;padding-bottom:10px;text-decoration:none\">ORDER NOW</div>\n            </div>\n        </div>\n    </div>\n</div>",{"condition":null,"layout":"list","fieldsToMatch":[{"field":"filetype","values":["sc_cat_item"]}],"mobile":null,"role":null}),true, true)
Coveo.TemplateCache.registerTemplate("ServiceNowCase", Coveo.HtmlTemplate.fromString("<div class=\"coveo-result-frame\">\n  <div class=\"coveo-result-cell\" style=\"vertical-align: top;\">\n    <div class=\"coveo-result-row\" style=\"margin-top:0;\">\n      <div class=\"coveo-result-cell\" style=\"vertical-align:top; font-size:16px\" role=\"heading\" aria-level=\"2\">\n        <a class=\"CoveoResultLink\" data-title-template=\"[${raw.snnumber}] ${raw.title} \">\n        </a>\n      </div>\n      <div class=\"coveo-result-cell\" style=\"width:120px\">\n        <span class=\"CoveoFieldValue\" data-field=\"@date\" data-text-caption=\"Updated: \" data-helper=\"dateTime\" data-html-value=\"false\"\n          data-helper-options-include-time-if-this-week=\"false\" style=\"color:#6A7689;font-size:10px\"></span>\n      </div>\n    </div>\n    <div class=\"coveo-result-row\" style=\"margin-top:10px;\">\n      <div class=\"coveo-result-cell\">\n        <span style=\"border-style:solid;border-width:thin;border-color:#3A6692;border-radius:0px 10px 10px 0px;font-size:12px;background-color:#3A6692;color:white;padding:2px 10px 0 10px;margin-right:-12px\">CSM Case</span>\n        <span class=\"CoveoFieldValue\" data-field=\"@snstate\" style=\"border:solid thin #3A6692;border-radius:0px 10px 10px 0px;font-size:12px;color:black;padding-left:15px;padding-right:10px;padding-top:2px;padding-bottom:2px\"></span>\n        <span class=\"CoveoFieldValue\" data-field=\"@snproductname\" data-text-caption=\"Product \" style=\"padding-left:10px\"></span>\n        <span class=\"CoveoFieldValue\" data-field=\"@snaccountname\" data-text-caption=\"Account \" style=\"padding-left:10px\"></span>\n      </div>\n      <div class=\"coveo-result-cell\" style=\"width:120px\">\n        <span class=\"CoveoQuickview\" style=\"font-size:10px;color:black;border-width:thin;border-color:grey;border-style:solid;border-radius:16px;width:100px;padding-right:10px;padding-left:10px;padding-top:2px;padding-bottom:2px;text-decoration:none\">QUICK VIEW</span>\n      </div>\n    </div>\n    <div class=\"coveo-result-row\" style=\"margin:10px\">\n      <div class=\"coveo-result-cell\" style=\"padding-right:15px;padding-top:10px;padding-bottom:10px\">\n        <span class=\"CoveoExcerpt\"></span>\n      </div>\n      <div class=\"coveo-result-cell\" style=\"width:150px;border-left:solid thin #CAD2D8;text-align:center\">\n        <span class=\"CoveoFieldValue\" data-field=\"@snpriority\" data-text-caption=\"Priority\" style=\"padding-top:10px\"></span></br>\n        <span class=\"CoveoFieldValue\" data-field=\"@snstate\" data-text-caption=\"State\" style=\"padding-top:10px\"></span>\n      </div>\n    </div>\n    <div class=\"coveo-result-row\" style=\"margin-top:10px;\">\n      <div class=\"coveo-result-cell\" style=\"border:solid thin #CAD2D8;padding:10px\">\n        <span class=\"CoveoFieldValue\" data-field=\"@sncategory\" data-text-caption=\"Category\" style=\"padding-right:5px\"></span>\n        <span class=\"CoveoFieldValue\" data-field=\"@snsubcategory\" data-text-caption=\" >\" style=\"padding-right:10px\"></span>\n        <span class=\"CoveoFieldValue\" data-field=\"@snassignedtoname\" data-text-caption=\"Assigned to\" style=\"padding-right:15px;padding-left:10px\"></span>\n        <span class=\"CoveoFieldValue\" data-field=\"@snclosedbyname\" data-text-caption=\"Closed  by\"></span>\n        <span class=\"CoveoFieldValue\" data-field=\"@snclosedat\" data-helper=\"dateTime\" data-html-value=\"false\" data-text-caption=\"on\"></span>\n        <div class=\"coveo-result-cell\" style=\"padding:5px\"></div>\n        <table class=\"CoveoFieldTable\" data-minimized-title=\"Details\" data-minimized-by-default=\"true\" data-expanded-title=\"Details\">\n          <tbody>\n            <tr data-caption=\"Work Notes\" data-field=\"@snworknotes\" data-html-value=\"true\" data-split-values=\"true\" data-separator=\"Checklist item:\"></tr>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </div>\n</div>",{"condition":null,"layout":"list","fieldsToMatch":[{"field":"filetype","values":["sn_customerservice_case"]}],"mobile":null,"role":null}),true, true)