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 _0x43fe=['emit','removeListener','register','whatsappQueue:','./whatsappQueue.events','save','remove','update'];(function(_0x5f3f88,_0x562baf){var _0xd08119=function(_0x42dbf7){while(--_0x42dbf7){_0x5f3f88['push'](_0x5f3f88['shift']());}};_0xd08119(++_0x562baf);}(_0x43fe,0x12c));var _0xe43f=function(_0x3144fa,_0x3c5eaa){_0x3144fa=_0x3144fa-0x0;var _0x511600=_0x43fe[_0x3144fa];return _0x511600;};'use strict';var WhatsappQueueEvents=require(_0xe43f('0x0'));var events=[_0xe43f('0x1'),_0xe43f('0x2'),_0xe43f('0x3')];function createListener(_0x2cdaf1,_0x40873c){return function(_0x21860d){_0x40873c[_0xe43f('0x4')](_0x2cdaf1,_0x21860d);};}function removeListener(_0x4bbaed,_0x5402fa){return function(){WhatsappQueueEvents[_0xe43f('0x5')](_0x4bbaed,_0x5402fa);};}exports[_0xe43f('0x6')]=function(_0x5e537b){for(var _0x309f12=0x0,_0x461188=events['length'];_0x309f12<_0x461188;_0x309f12++){var _0x8480fb=events[_0x309f12];var _0x537409=createListener(_0xe43f('0x7')+_0x8480fb,_0x5e537b);WhatsappQueueEvents['on'](_0x8480fb,_0x537409);}};