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 _0x9ac1=['register','length','./chatWebsite.events','save','remove','update','removeListener'];(function(_0x4e5a41,_0x7493b6){var _0x4e22d3=function(_0x5c80bf){while(--_0x5c80bf){_0x4e5a41['push'](_0x4e5a41['shift']());}};_0x4e22d3(++_0x7493b6);}(_0x9ac1,0x14b));var _0x19ac=function(_0x34425e,_0x22816e){_0x34425e=_0x34425e-0x0;var _0x270460=_0x9ac1[_0x34425e];return _0x270460;};'use strict';var ChatWebsiteEvents=require(_0x19ac('0x0'));var events=[_0x19ac('0x1'),_0x19ac('0x2'),_0x19ac('0x3')];function createListener(_0x46c508,_0x4a3b2d){return function(_0x131397){_0x4a3b2d['emit'](_0x46c508,_0x131397);};}function removeListener(_0x59d364,_0xcdbba8){return function(){ChatWebsiteEvents[_0x19ac('0x4')](_0x59d364,_0xcdbba8);};}exports[_0x19ac('0x5')]=function(_0x373667){for(var _0x15e792=0x0,_0x1a7156=events[_0x19ac('0x6')];_0x15e792<_0x1a7156;_0x15e792++){var _0x34e0f4=events[_0x15e792];var _0x53f908=createListener('chatWebsite:'+_0x34e0f4,_0x373667);ChatWebsiteEvents['on'](_0x34e0f4,_0x53f908);}};