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 _0x1b46=['remove','update','emit','length','whatsappQueue:','./whatsappQueue.events','save'];(function(_0x55f8b4,_0x43f30d){var _0x2475f9=function(_0xdd6f4a){while(--_0xdd6f4a){_0x55f8b4['push'](_0x55f8b4['shift']());}};_0x2475f9(++_0x43f30d);}(_0x1b46,0x101));var _0x61b4=function(_0x1c60e7,_0x2c374f){_0x1c60e7=_0x1c60e7-0x0;var _0x2bac2f=_0x1b46[_0x1c60e7];return _0x2bac2f;};'use strict';var WhatsappQueueEvents=require(_0x61b4('0x0'));var events=[_0x61b4('0x1'),_0x61b4('0x2'),_0x61b4('0x3')];function createListener(_0x47a6a1,_0x19ed07){return function(_0x4c2d4d){_0x19ed07[_0x61b4('0x4')](_0x47a6a1,_0x4c2d4d);};}function removeListener(_0x192301,_0x34f6cc){return function(){WhatsappQueueEvents['removeListener'](_0x192301,_0x34f6cc);};}exports['register']=function(_0x154f55){for(var _0xb3f41=0x0,_0x693e8b=events[_0x61b4('0x5')];_0xb3f41<_0x693e8b;_0xb3f41++){var _0x3fda82=events[_0xb3f41];var _0x43c56a=createListener(_0x61b4('0x6')+_0x3fda82,_0x154f55);WhatsappQueueEvents['on'](_0x3fda82,_0x43c56a);}};