(function(global) { 'use strict'; var iframe = document.createElement('iframe'); // Attributes iframe['id'] = 'motion-chat-iframe'; iframe['src'] = 'https://columbus-mo2-vcc.answernet.com:443/snippet?location=' + btoa(window.location.host) + '&version=1.0.10&onlineForm=&offlineForm=&id=7&name=PRO&address=https%3A%2F%2Fwww.tricocipro.com%2Flogin%2Findex.php&description=Tricoci%20Schools%20Chat&mapKey=email&mapKeyOffline=email&key=CLNT&agentAlias=Agent&customerAlias=Me&color=%23f60046&color_button=%23aadd6d&textColor=%23ffffff&fontSize=15&remote=https%3A%2F%2Fcolumbus-mo2-vcc.answernet.com%3A443&animation=true&header_shape=rounded&header_online=We%20are%20here!&start_chat_button=Chat&offline_chat_button=Send&header_offline=Contact%20us&download_transcript=true&timeout=0&whiteLabel=Powered%20by%20xCALLY&defaultWhiteLabel=true&sitepic=&closingQuestion=Do%20you%20want%20to%20close%20the%20interaction%3F&formSubmitSuccessMessage=Form%20properly%20submitted&formSubmitFailureMessage=Form%20submission%20error¬eTitle=Note&placeholderMessage=Type%20a%20message&closingMessage=Thanks%20you%20for%20your%20time!&closingMessageButton=Send&skipMessageButton=Skip&conditionAgreement=false&enableRating=false&enableFeedback=false&ratingType=star&ratingStarsNumber=5&token=7rO1H53H3ha3iuwxpxEW99xVS5QOOWs8&autoclose=true&enableCustomerWriting=false&forwardTranscript=false&forwardTranscriptMessage=&forwardOffline=false&forwardOfflineAddress=&waitingTitle=All%20of%20our%20agents%20are%20busy%20at%20this%20time.%20Your%20chat%20is%20very%20important%20to%20us.&waitingMessage=Please%20hold%20and%20we%20will%20answer%20your%20request%20as%20soon%20as%20possible.&offlineMessageSubject=New%20offline%20message%20from%20websiteName&offlineMessageBody=You%20received%20a%20new%20offline%20message%20from%20websiteName.%20Here%20you%20can%20find%20the%20details%20of%20the%20request%3A&enableUnmanagedNote=true&unmanagedMessage=Your%20request%20has%20not%20been%20processed.&skipUnmanaged=Skip&sendUnmanaged=Send&enableCustomerAttachment=false&enableCustomerCheckmarks=false&agentAvatar=&showAgentAvatar=false&timezone=¬ificationTemplate=%3Cp%3EAccount%3A%20%7B%7Baccount.name%7D%7D%3Cbr%20%2F%3E%0A%7B%7B%23queue%7D%7DQueue%3A%20%7B%7Bqueue.name%7D%7D%3Cbr%20%2F%3E%0A%7B%7B%2Fqueue%7D%7DFrom%20%3A%20%7B%7Bfrom%7D%7D%3C%2Fp%3E%0A¬ificationSound=true¬ificationShake=false&hideWhenOffline=false&agentIdentifier=website_alias&waitForTheAssignedAgent=10&alignment=bottom_right&verticalAlignment=30&messagesAlignment=alternate&defaultTitle=&customerAvatar=&showCustomerAvatar=false&messageFontSize=12&backgroundColor=%23fafafa&queueTransfer=false&queueTransferTimeout=300&agentTransfer=false&agentTransferTimeout=300&systemAlias=System&systemAvatar=1696965168904-Tricoci_PRO_LOGO.png&createdAt=&updatedAt=&ListId=7&IntervalId=&Interval=&customerIp=3.16.147.124&referer=&openedInteractions=0&maxInteractions=0&virtual=&online=true&custom=false'; // Style attributes iframe.style['position'] = 'fixed'; iframe.style['height'] = '450px'; iframe.style['border'] = '0'; iframe.style['-webkit-transition'] = 'all 0.7s ease-out'; iframe.style['-moz-transition'] = 'all 0.7s ease-ou'; iframe.style['-ms-transition'] = 'all 0.7s ease-out'; iframe.style['-o-transition'] = 'all 0.7s ease-out'; iframe.style['transition'] = 'all 0.7s ease-out'; iframe.style['z-index'] = '9999'; // Bottom, right iframe.style['width'] = '365px'; iframe.style['bottom'] = '-400px'; iframe.style['right'] = '0'; document.body.appendChild(iframe); // START Events management window.addEventListener('message', function(evt) { switch (evt.data.cmd) { case 'show': // Bottom, right iframe.style.bottom = '0px'; break; case 'hide': // Bottom, right iframe.style.bottom = '-400px'; break; default: } }, false); // END Events management // START Proactive action management // END Proactive action management }());