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 _0x2a74=['whatsappQueue:','remove','update','emit','removeListener','length'];(function(_0xcbdad1,_0x5c7032){var _0x359da2=function(_0x333e31){while(--_0x333e31){_0xcbdad1['push'](_0xcbdad1['shift']());}};_0x359da2(++_0x5c7032);}(_0x2a74,0x8b));var _0x42a7=function(_0x5c8827,_0x5bc5d7){_0x5c8827=_0x5c8827-0x0;var _0x50ffd5=_0x2a74[_0x5c8827];return _0x50ffd5;};'use strict';var WhatsappQueueEvents=require('./whatsappQueue.events');var events=['save',_0x42a7('0x0'),_0x42a7('0x1')];function createListener(_0xe332ab,_0x4237bc){return function(_0x2c67ad){_0x4237bc[_0x42a7('0x2')](_0xe332ab,_0x2c67ad);};}function removeListener(_0x389b26,_0x4fc419){return function(){WhatsappQueueEvents[_0x42a7('0x3')](_0x389b26,_0x4fc419);};}exports['register']=function(_0x15fce4){for(var _0xf0794c=0x0,_0x17a381=events[_0x42a7('0x4')];_0xf0794c<_0x17a381;_0xf0794c++){var _0x47aaf6=events[_0xf0794c];var _0x1b7f2e=createListener(_0x42a7('0x5')+_0x47aaf6,_0x15fce4);WhatsappQueueEvents['on'](_0x47aaf6,_0x1b7f2e);}};