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 _0x0c52=['length','whatsappInteraction:','./whatsappInteraction.events','removeListener'];(function(_0x5c6a1a,_0x407cd9){var _0x3e2f16=function(_0x3eba39){while(--_0x3eba39){_0x5c6a1a['push'](_0x5c6a1a['shift']());}};_0x3e2f16(++_0x407cd9);}(_0x0c52,0x1d2));var _0x20c5=function(_0x5d99f8,_0x4bd840){_0x5d99f8=_0x5d99f8-0x0;var _0x4440c5=_0x0c52[_0x5d99f8];return _0x4440c5;};'use strict';var WhatsappInteractionEvents=require(_0x20c5('0x0'));var events=['save','remove','update'];function createListener(_0x42dc11,_0x50008b){return function(_0x4ffc7f){_0x50008b['emit'](_0x42dc11,_0x4ffc7f);};}function removeListener(_0x293629,_0x3caa56){return function(){WhatsappInteractionEvents[_0x20c5('0x1')](_0x293629,_0x3caa56);};}exports['register']=function(_0x34ee90){for(var _0x192631=0x0,_0x33bed6=events[_0x20c5('0x2')];_0x192631<_0x33bed6;_0x192631++){var _0x41fa08=events[_0x192631];var _0x4649ab=createListener(_0x20c5('0x3')+_0x41fa08,_0x34ee90);WhatsappInteractionEvents['on'](_0x41fa08,_0x4649ab);}};