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 _0x2511=['removeListener','length','chatWebsite:','./chatWebsite.events','save','update'];(function(_0x1d8242,_0x47413c){var _0x1cbd9a=function(_0x28842c){while(--_0x28842c){_0x1d8242['push'](_0x1d8242['shift']());}};_0x1cbd9a(++_0x47413c);}(_0x2511,0x135));var _0x1251=function(_0x20c99d,_0x5ca65e){_0x20c99d=_0x20c99d-0x0;var _0x148af0=_0x2511[_0x20c99d];return _0x148af0;};'use strict';var ChatWebsiteEvents=require(_0x1251('0x0'));var events=[_0x1251('0x1'),'remove',_0x1251('0x2')];function createListener(_0x657f10,_0x25139a){return function(_0x2089ba){_0x25139a['emit'](_0x657f10,_0x2089ba);};}function removeListener(_0x40a8e6,_0x5bca2e){return function(){ChatWebsiteEvents[_0x1251('0x3')](_0x40a8e6,_0x5bca2e);};}exports['register']=function(_0x18e71c){for(var _0x18b8ae=0x0,_0xcd10a7=events[_0x1251('0x4')];_0x18b8ae<_0xcd10a7;_0x18b8ae++){var _0x2078d0=events[_0x18b8ae];var _0x5dacaa=createListener(_0x1251('0x5')+_0x2078d0,_0x18e71c);ChatWebsiteEvents['on'](_0x2078d0,_0x5dacaa);}};