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 _0x3987=['remove','update','emit','register','length','whatsappInteraction:','save'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x3987,0x1b8));var _0x7398=function(_0x592df2,_0x613eae){_0x592df2=_0x592df2-0x0;var _0x40b754=_0x3987[_0x592df2];return _0x40b754;};'use strict';var WhatsappInteractionEvents=require('./whatsappInteraction.events');var events=[_0x7398('0x0'),_0x7398('0x1'),_0x7398('0x2')];function createListener(_0x2a201d,_0x5d2e6b){return function(_0xdca95b){_0x5d2e6b[_0x7398('0x3')](_0x2a201d,_0xdca95b);};}function removeListener(_0xe7ece,_0x37e566){return function(){WhatsappInteractionEvents['removeListener'](_0xe7ece,_0x37e566);};}exports[_0x7398('0x4')]=function(_0x5407fa){for(var _0x181e2c=0x0,_0x49884f=events[_0x7398('0x5')];_0x181e2c<_0x49884f;_0x181e2c++){var _0xa5a38f=events[_0x181e2c];var _0x582a49=createListener(_0x7398('0x6')+_0xa5a38f,_0x5407fa);WhatsappInteractionEvents['on'](_0xa5a38f,_0x582a49);}};