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 _0xb6e7=['./whatsappQueue.events','save','remove','update','emit','removeListener','register'];(function(_0x273c83,_0x2b2100){var _0x1ade28=function(_0x242135){while(--_0x242135){_0x273c83['push'](_0x273c83['shift']());}};_0x1ade28(++_0x2b2100);}(_0xb6e7,0x165));var _0x7b6e=function(_0x2384b2,_0x4d6a25){_0x2384b2=_0x2384b2-0x0;var _0xf02d94=_0xb6e7[_0x2384b2];return _0xf02d94;};'use strict';var WhatsappQueueEvents=require(_0x7b6e('0x0'));var events=[_0x7b6e('0x1'),_0x7b6e('0x2'),_0x7b6e('0x3')];function createListener(_0x2be004,_0x313ec6){return function(_0x2dceb3){_0x313ec6[_0x7b6e('0x4')](_0x2be004,_0x2dceb3);};}function removeListener(_0x3ebb07,_0xcb5b0a){return function(){WhatsappQueueEvents[_0x7b6e('0x5')](_0x3ebb07,_0xcb5b0a);};}exports[_0x7b6e('0x6')]=function(_0x393101){for(var _0x2efe79=0x0,_0x236689=events['length'];_0x2efe79<_0x236689;_0x2efe79++){var _0x449f5a=events[_0x2efe79];var _0x1fe324=createListener('whatsappQueue:'+_0x449f5a,_0x393101);WhatsappQueueEvents['on'](_0x449f5a,_0x1fe324);}};