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 _0x7dd4=['removeListener','register','./whatsappAccount.events','emit'];(function(_0xa5b19d,_0x4b4750){var _0x28049e=function(_0x27169){while(--_0x27169){_0xa5b19d['push'](_0xa5b19d['shift']());}};_0x28049e(++_0x4b4750);}(_0x7dd4,0xd6));var _0x47dd=function(_0x46ab42,_0x1d5ea0){_0x46ab42=_0x46ab42-0x0;var _0x497e45=_0x7dd4[_0x46ab42];return _0x497e45;};'use strict';var WhatsappAccountEvents=require(_0x47dd('0x0'));var events=['save','remove','update'];function createListener(_0x48c5a3,_0x4c5630){return function(_0x5f2d53){_0x4c5630[_0x47dd('0x1')](_0x48c5a3,_0x5f2d53);};}function removeListener(_0x23ce86,_0x4e9c7f){return function(){WhatsappAccountEvents[_0x47dd('0x2')](_0x23ce86,_0x4e9c7f);};}exports[_0x47dd('0x3')]=function(_0x82aa9e){for(var _0x24b6a3=0x0,_0x221657=events['length'];_0x24b6a3<_0x221657;_0x24b6a3++){var _0x1d0c6a=events[_0x24b6a3];var _0x2b74a1=createListener('whatsappAccount:'+_0x1d0c6a,_0x82aa9e);WhatsappAccountEvents['on'](_0x1d0c6a,_0x2b74a1);}};