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 _0xc96f=['removeListener','whatsappMessage:','./whatsappMessage.events','save','remove'];(function(_0x1037a6,_0x3667ce){var _0x589c1c=function(_0x35811e){while(--_0x35811e){_0x1037a6['push'](_0x1037a6['shift']());}};_0x589c1c(++_0x3667ce);}(_0xc96f,0x17e));var _0xfc96=function(_0x7105e,_0x2e0ade){_0x7105e=_0x7105e-0x0;var _0x167962=_0xc96f[_0x7105e];return _0x167962;};'use strict';var WhatsappMessageEvents=require(_0xfc96('0x0'));var events=[_0xfc96('0x1'),_0xfc96('0x2'),'update'];function createListener(_0x5808ef,_0x10a7a0){return function(_0x489bf8){_0x10a7a0['emit'](_0x5808ef,_0x489bf8);};}function removeListener(_0xfaa62a,_0x3fe383){return function(){WhatsappMessageEvents[_0xfc96('0x3')](_0xfaa62a,_0x3fe383);};}exports['register']=function(_0x488e1c){for(var _0x1e7eaa=0x0,_0x206089=events['length'];_0x1e7eaa<_0x206089;_0x1e7eaa++){var _0x3dfecc=events[_0x1e7eaa];var _0xdf98bd=createListener(_0xfc96('0x4')+_0x3dfecc,_0x488e1c);WhatsappMessageEvents['on'](_0x3dfecc,_0xdf98bd);}};