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 _0x80c0=['emit','removeListener','register','./whatsappAccount.events','save','remove','update'];(function(_0x3b3a82,_0x53b5e0){var _0x267063=function(_0x5aaf3d){while(--_0x5aaf3d){_0x3b3a82['push'](_0x3b3a82['shift']());}};_0x267063(++_0x53b5e0);}(_0x80c0,0xf8));var _0x080c=function(_0x220e7d,_0xcbb04a){_0x220e7d=_0x220e7d-0x0;var _0x1c887d=_0x80c0[_0x220e7d];return _0x1c887d;};'use strict';var WhatsappAccountEvents=require(_0x080c('0x0'));var events=[_0x080c('0x1'),_0x080c('0x2'),_0x080c('0x3')];function createListener(_0x32aeec,_0x5d73c6){return function(_0x1feae0){_0x5d73c6[_0x080c('0x4')](_0x32aeec,_0x1feae0);};}function removeListener(_0xb59c0,_0x10a6bd){return function(){WhatsappAccountEvents[_0x080c('0x5')](_0xb59c0,_0x10a6bd);};}exports[_0x080c('0x6')]=function(_0x5cf6cc){for(var _0x409dd1=0x0,_0x1f92bd=events['length'];_0x409dd1<_0x1f92bd;_0x409dd1++){var _0x41bb49=events[_0x409dd1];var _0x47058e=createListener('whatsappAccount:'+_0x41bb49,_0x5cf6cc);WhatsappAccountEvents['on'](_0x41bb49,_0x47058e);}};