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 _0xea94=['update','emit','removeListener','register','length','./whatsappAccount.events','remove'];(function(_0x595a5c,_0x4197c6){var _0x3b384e=function(_0x54051f){while(--_0x54051f){_0x595a5c['push'](_0x595a5c['shift']());}};_0x3b384e(++_0x4197c6);}(_0xea94,0x155));var _0x4ea9=function(_0x49d48d,_0xf1fdaa){_0x49d48d=_0x49d48d-0x0;var _0x46e093=_0xea94[_0x49d48d];return _0x46e093;};'use strict';var WhatsappAccountEvents=require(_0x4ea9('0x0'));var events=['save',_0x4ea9('0x1'),_0x4ea9('0x2')];function createListener(_0x2f67ef,_0xabcb5a){return function(_0x20ec68){_0xabcb5a[_0x4ea9('0x3')](_0x2f67ef,_0x20ec68);};}function removeListener(_0x734ee3,_0x262054){return function(){WhatsappAccountEvents[_0x4ea9('0x4')](_0x734ee3,_0x262054);};}exports[_0x4ea9('0x5')]=function(_0x1cdf2a){for(var _0xbe159e=0x0,_0x48f994=events[_0x4ea9('0x6')];_0xbe159e<_0x48f994;_0xbe159e++){var _0x261e52=events[_0xbe159e];var _0x403c65=createListener('whatsappAccount:'+_0x261e52,_0x1cdf2a);WhatsappAccountEvents['on'](_0x261e52,_0x403c65);}};