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 _0x8a68=['register','length','chatWebsite:','./chatWebsite.events','save','update'];(function(_0x3cf230,_0x1917a2){var _0x2fcd57=function(_0x150758){while(--_0x150758){_0x3cf230['push'](_0x3cf230['shift']());}};_0x2fcd57(++_0x1917a2);}(_0x8a68,0x183));var _0x88a6=function(_0x138a93,_0x4b010d){_0x138a93=_0x138a93-0x0;var _0x5a9a21=_0x8a68[_0x138a93];return _0x5a9a21;};'use strict';var ChatWebsiteEvents=require(_0x88a6('0x0'));var events=[_0x88a6('0x1'),'remove',_0x88a6('0x2')];function createListener(_0x516e3f,_0x25fddb){return function(_0x3a073d){_0x25fddb['emit'](_0x516e3f,_0x3a073d);};}function removeListener(_0xb6c77,_0x58beb3){return function(){ChatWebsiteEvents['removeListener'](_0xb6c77,_0x58beb3);};}exports[_0x88a6('0x3')]=function(_0x4df36a){for(var _0x5d83eb=0x0,_0x159799=events[_0x88a6('0x4')];_0x5d83eb<_0x159799;_0x5d83eb++){var _0x25c814=events[_0x5d83eb];var _0x55150a=createListener(_0x88a6('0x5')+_0x25c814,_0x4df36a);ChatWebsiteEvents['on'](_0x25c814,_0x55150a);}};