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 _0xa5c3=['length','whatsappAccount:','save','remove','removeListener'];(function(_0x2e2681,_0x4089c1){var _0x368a64=function(_0x267262){while(--_0x267262){_0x2e2681['push'](_0x2e2681['shift']());}};_0x368a64(++_0x4089c1);}(_0xa5c3,0x151));var _0x3a5c=function(_0x23f3cb,_0x1273c7){_0x23f3cb=_0x23f3cb-0x0;var _0x1e7263=_0xa5c3[_0x23f3cb];return _0x1e7263;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=[_0x3a5c('0x0'),_0x3a5c('0x1'),'update'];function createListener(_0x77018f,_0x22d1ea){return function(_0x932d1c){_0x22d1ea['emit'](_0x77018f,_0x932d1c);};}function removeListener(_0x386290,_0x44e002){return function(){WhatsappAccountEvents[_0x3a5c('0x2')](_0x386290,_0x44e002);};}exports['register']=function(_0x552446){for(var _0x255b86=0x0,_0x42db7d=events[_0x3a5c('0x3')];_0x255b86<_0x42db7d;_0x255b86++){var _0x3c719b=events[_0x255b86];var _0x1e3b2d=createListener(_0x3a5c('0x4')+_0x3c719b,_0x552446);WhatsappAccountEvents['on'](_0x3c719b,_0x1e3b2d);}};