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 _0xb7b7=['update','emit','removeListener','whatsappAccount:','save'];(function(_0x35af00,_0x427be1){var _0x48cf8f=function(_0x42732a){while(--_0x42732a){_0x35af00['push'](_0x35af00['shift']());}};_0x48cf8f(++_0x427be1);}(_0xb7b7,0x1d0));var _0x7b7b=function(_0x50e9a0,_0x1b1807){_0x50e9a0=_0x50e9a0-0x0;var _0x57c3e4=_0xb7b7[_0x50e9a0];return _0x57c3e4;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=[_0x7b7b('0x0'),'remove',_0x7b7b('0x1')];function createListener(_0x3c6eba,_0xacfeb6){return function(_0x988a7a){_0xacfeb6[_0x7b7b('0x2')](_0x3c6eba,_0x988a7a);};}function removeListener(_0x3cedab,_0x4ec713){return function(){WhatsappAccountEvents[_0x7b7b('0x3')](_0x3cedab,_0x4ec713);};}exports['register']=function(_0x5c7336){for(var _0x37e904=0x0,_0x3ea104=events['length'];_0x37e904<_0x3ea104;_0x37e904++){var _0x3634d1=events[_0x37e904];var _0x1b9416=createListener(_0x7b7b('0x4')+_0x3634d1,_0x5c7336);WhatsappAccountEvents['on'](_0x3634d1,_0x1b9416);}};