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 _0x56c0=['whatsappMessage:','save','update','emit','removeListener','register','length'];(function(_0xa741fa,_0x14b888){var _0xfa882c=function(_0x53339d){while(--_0x53339d){_0xa741fa['push'](_0xa741fa['shift']());}};_0xfa882c(++_0x14b888);}(_0x56c0,0x174));var _0x056c=function(_0x39a424,_0x2d8775){_0x39a424=_0x39a424-0x0;var _0x437378=_0x56c0[_0x39a424];return _0x437378;};'use strict';var WhatsappMessageEvents=require('./whatsappMessage.events');var events=[_0x056c('0x0'),'remove',_0x056c('0x1')];function createListener(_0x391011,_0xea4866){return function(_0x1b70a8){_0xea4866[_0x056c('0x2')](_0x391011,_0x1b70a8);};}function removeListener(_0x1036e2,_0x2c0d7f){return function(){WhatsappMessageEvents[_0x056c('0x3')](_0x1036e2,_0x2c0d7f);};}exports[_0x056c('0x4')]=function(_0x31e57e){for(var _0x5b422d=0x0,_0x16dac3=events[_0x056c('0x5')];_0x5b422d<_0x16dac3;_0x5b422d++){var _0xdaad84=events[_0x5b422d];var _0xb9b398=createListener(_0x056c('0x6')+_0xdaad84,_0x31e57e);WhatsappMessageEvents['on'](_0xdaad84,_0xb9b398);}};