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 _0x3d70=['removeListener','length','whatsappAccount:','save','remove','emit'];(function(_0x3da144,_0x578cbd){var _0x13fdc7=function(_0x2d2919){while(--_0x2d2919){_0x3da144['push'](_0x3da144['shift']());}};_0x13fdc7(++_0x578cbd);}(_0x3d70,0x1ad));var _0x03d7=function(_0x92713a,_0x68f8b0){_0x92713a=_0x92713a-0x0;var _0x1893e1=_0x3d70[_0x92713a];return _0x1893e1;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=[_0x03d7('0x0'),_0x03d7('0x1'),'update'];function createListener(_0x257e78,_0x320217){return function(_0x2229d9){_0x320217[_0x03d7('0x2')](_0x257e78,_0x2229d9);};}function removeListener(_0x2215e4,_0x12c695){return function(){WhatsappAccountEvents[_0x03d7('0x3')](_0x2215e4,_0x12c695);};}exports['register']=function(_0x29c77e){for(var _0x297332=0x0,_0x2e1cc9=events[_0x03d7('0x4')];_0x297332<_0x2e1cc9;_0x297332++){var _0x888e7a=events[_0x297332];var _0x21e26c=createListener(_0x03d7('0x5')+_0x888e7a,_0x29c77e);WhatsappAccountEvents['on'](_0x888e7a,_0x21e26c);}};