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 _0x943a=['whatsappInteraction:','./whatsappInteraction.events','save','remove','update','emit','length'];(function(_0x426c1f,_0x52adf3){var _0x31c3df=function(_0x2f014d){while(--_0x2f014d){_0x426c1f['push'](_0x426c1f['shift']());}};_0x31c3df(++_0x52adf3);}(_0x943a,0x127));var _0xa943=function(_0x20842f,_0x502e57){_0x20842f=_0x20842f-0x0;var _0x3094db=_0x943a[_0x20842f];return _0x3094db;};'use strict';var WhatsappInteractionEvents=require(_0xa943('0x0'));var events=[_0xa943('0x1'),_0xa943('0x2'),_0xa943('0x3')];function createListener(_0xf0a06b,_0x32b6eb){return function(_0x3d55c7){_0x32b6eb[_0xa943('0x4')](_0xf0a06b,_0x3d55c7);};}function removeListener(_0x19c523,_0x2e6427){return function(){WhatsappInteractionEvents['removeListener'](_0x19c523,_0x2e6427);};}exports['register']=function(_0x6df2e5){for(var _0x487cfc=0x0,_0x259219=events[_0xa943('0x5')];_0x487cfc<_0x259219;_0x487cfc++){var _0x545617=events[_0x487cfc];var _0x5470b9=createListener(_0xa943('0x6')+_0x545617,_0x6df2e5);WhatsappInteractionEvents['on'](_0x545617,_0x5470b9);}};