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 _0xf1ac=['emit','removeListener','register','length','whatsappInteraction:','./whatsappInteraction.events','save','remove','update'];(function(_0x489b87,_0xd51c93){var _0x1823b6=function(_0x451c70){while(--_0x451c70){_0x489b87['push'](_0x489b87['shift']());}};_0x1823b6(++_0xd51c93);}(_0xf1ac,0x191));var _0xcf1a=function(_0x4bc65f,_0x39ec43){_0x4bc65f=_0x4bc65f-0x0;var _0x44f85f=_0xf1ac[_0x4bc65f];return _0x44f85f;};'use strict';var WhatsappInteractionEvents=require(_0xcf1a('0x0'));var events=[_0xcf1a('0x1'),_0xcf1a('0x2'),_0xcf1a('0x3')];function createListener(_0x118230,_0x182661){return function(_0x46c651){_0x182661[_0xcf1a('0x4')](_0x118230,_0x46c651);};}function removeListener(_0x365c85,_0x1f7010){return function(){WhatsappInteractionEvents[_0xcf1a('0x5')](_0x365c85,_0x1f7010);};}exports[_0xcf1a('0x6')]=function(_0x39b483){for(var _0x16fcb4=0x0,_0x4a7730=events[_0xcf1a('0x7')];_0x16fcb4<_0x4a7730;_0x16fcb4++){var _0x102f76=events[_0x16fcb4];var _0x5745a3=createListener(_0xcf1a('0x8')+_0x102f76,_0x39b483);WhatsappInteractionEvents['on'](_0x102f76,_0x5745a3);}};