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 _0xeb86=['removeListener','register','whatsappAccount:','save','update','emit'];(function(_0x23a16b,_0x272dce){var _0x4aa838=function(_0x5a8220){while(--_0x5a8220){_0x23a16b['push'](_0x23a16b['shift']());}};_0x4aa838(++_0x272dce);}(_0xeb86,0x159));var _0x6eb8=function(_0x4117e0,_0x49da08){_0x4117e0=_0x4117e0-0x0;var _0x28ab26=_0xeb86[_0x4117e0];return _0x28ab26;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=[_0x6eb8('0x0'),'remove',_0x6eb8('0x1')];function createListener(_0x4f5d31,_0x4db5af){return function(_0x457efc){_0x4db5af[_0x6eb8('0x2')](_0x4f5d31,_0x457efc);};}function removeListener(_0x3be2be,_0x1b72dd){return function(){WhatsappAccountEvents[_0x6eb8('0x3')](_0x3be2be,_0x1b72dd);};}exports[_0x6eb8('0x4')]=function(_0x19b073){for(var _0x2502f0=0x0,_0x249646=events['length'];_0x2502f0<_0x249646;_0x2502f0++){var _0x3cb36f=events[_0x2502f0];var _0x1012db=createListener(_0x6eb8('0x5')+_0x3cb36f,_0x19b073);WhatsappAccountEvents['on'](_0x3cb36f,_0x1012db);}};