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 _0x376e=['remove','update','length','whatsappAccount:','./whatsappAccount.events','save'];(function(_0x2e27ac,_0x2b2f83){var _0x12af21=function(_0x2fcd8c){while(--_0x2fcd8c){_0x2e27ac['push'](_0x2e27ac['shift']());}};_0x12af21(++_0x2b2f83);}(_0x376e,0x106));var _0xe376=function(_0x36c5b0,_0x5001da){_0x36c5b0=_0x36c5b0-0x0;var _0xf19333=_0x376e[_0x36c5b0];return _0xf19333;};'use strict';var WhatsappAccountEvents=require(_0xe376('0x0'));var events=[_0xe376('0x1'),_0xe376('0x2'),_0xe376('0x3')];function createListener(_0x50975b,_0x2b8eea){return function(_0x5ea2d4){_0x2b8eea['emit'](_0x50975b,_0x5ea2d4);};}function removeListener(_0x284261,_0x3337de){return function(){WhatsappAccountEvents['removeListener'](_0x284261,_0x3337de);};}exports['register']=function(_0xe5ded9){for(var _0x3f8f67=0x0,_0x23f537=events[_0xe376('0x4')];_0x3f8f67<_0x23f537;_0x3f8f67++){var _0x539a7=events[_0x3f8f67];var _0x1f6823=createListener(_0xe376('0x5')+_0x539a7,_0xe5ded9);WhatsappAccountEvents['on'](_0x539a7,_0x1f6823);}};