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 _0xeb72=['removeListener','length','whatsappAccount:','./whatsappAccount.events','save','update','emit'];(function(_0x420bc2,_0x49163c){var _0x204694=function(_0x10a03d){while(--_0x10a03d){_0x420bc2['push'](_0x420bc2['shift']());}};_0x204694(++_0x49163c);}(_0xeb72,0x96));var _0x2eb7=function(_0x3873bf,_0x1d1a56){_0x3873bf=_0x3873bf-0x0;var _0x4e66cd=_0xeb72[_0x3873bf];return _0x4e66cd;};'use strict';var WhatsappAccountEvents=require(_0x2eb7('0x0'));var events=[_0x2eb7('0x1'),'remove',_0x2eb7('0x2')];function createListener(_0x4e527b,_0x1325bd){return function(_0x3b9d36){_0x1325bd[_0x2eb7('0x3')](_0x4e527b,_0x3b9d36);};}function removeListener(_0x29a956,_0x553656){return function(){WhatsappAccountEvents[_0x2eb7('0x4')](_0x29a956,_0x553656);};}exports['register']=function(_0xfcd97c){for(var _0x1e8bcf=0x0,_0x467489=events[_0x2eb7('0x5')];_0x1e8bcf<_0x467489;_0x1e8bcf++){var _0x2e7961=events[_0x1e8bcf];var _0x2e7337=createListener(_0x2eb7('0x6')+_0x2e7961,_0xfcd97c);WhatsappAccountEvents['on'](_0x2e7961,_0x2e7337);}};