1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x65c7=['removeListener','register','length','chatWebsite:','./chatWebsite.events','save','remove','emit'];(function(_0x154183,_0x51a187){var _0x46b653=function(_0x370978){while(--_0x370978){_0x154183['push'](_0x154183['shift']());}};_0x46b653(++_0x51a187);}(_0x65c7,0x104));var _0x765c=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x65c7[_0x14add3];return _0x4a174f;};'use strict';var ChatWebsiteEvents=require(_0x765c('0x0'));var events=[_0x765c('0x1'),_0x765c('0x2'),'update'];function createListener(_0x2ee19d,_0x4a16ce){return function(_0x12a27e){_0x4a16ce[_0x765c('0x3')](_0x2ee19d,_0x12a27e);};}function removeListener(_0x4c4734,_0x77c914){return function(){ChatWebsiteEvents[_0x765c('0x4')](_0x4c4734,_0x77c914);};}exports[_0x765c('0x5')]=function(_0x1bcc9a){for(var _0x27db59=0x0,_0x258124=events[_0x765c('0x6')];_0x27db59<_0x258124;_0x27db59++){var _0x118a0b=events[_0x27db59];var _0x5e63ad=createListener(_0x765c('0x7')+_0x118a0b,_0x1bcc9a);ChatWebsiteEvents['on'](_0x118a0b,_0x5e63ad);}};