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 _0x9fd9=['remove','emit','register','whatsappInteraction:','./whatsappInteraction.events'];(function(_0x4b369d,_0x265eb8){var _0x571a98=function(_0x56341a){while(--_0x56341a){_0x4b369d['push'](_0x4b369d['shift']());}};_0x571a98(++_0x265eb8);}(_0x9fd9,0x144));var _0x99fd=function(_0x5001f5,_0x298fb){_0x5001f5=_0x5001f5-0x0;var _0x30017f=_0x9fd9[_0x5001f5];return _0x30017f;};'use strict';var WhatsappInteractionEvents=require(_0x99fd('0x0'));var events=['save',_0x99fd('0x1'),'update'];function createListener(_0x1deb04,_0x29dec5){return function(_0x31262f){_0x29dec5[_0x99fd('0x2')](_0x1deb04,_0x31262f);};}function removeListener(_0x1fb652,_0x23a20c){return function(){WhatsappInteractionEvents['removeListener'](_0x1fb652,_0x23a20c);};}exports[_0x99fd('0x3')]=function(_0x30e0c7){for(var _0x566730=0x0,_0x28c49a=events['length'];_0x566730<_0x28c49a;_0x566730++){var _0x4c618b=events[_0x566730];var _0x503e9d=createListener(_0x99fd('0x4')+_0x4c618b,_0x30e0c7);WhatsappInteractionEvents['on'](_0x4c618b,_0x503e9d);}};