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 _0xc580=['length','whatsappAccount:','remove','update','emit','removeListener','register'];(function(_0x1d1779,_0x284147){var _0x2377e9=function(_0x299f6f){while(--_0x299f6f){_0x1d1779['push'](_0x1d1779['shift']());}};_0x2377e9(++_0x284147);}(_0xc580,0x1e5));var _0x0c58=function(_0x67d69b,_0xfc967e){_0x67d69b=_0x67d69b-0x0;var _0xd668f1=_0xc580[_0x67d69b];return _0xd668f1;};'use strict';var WhatsappAccountEvents=require('./whatsappAccount.events');var events=['save',_0x0c58('0x0'),_0x0c58('0x1')];function createListener(_0x2bb35e,_0x59a442){return function(_0x5a52b7){_0x59a442[_0x0c58('0x2')](_0x2bb35e,_0x5a52b7);};}function removeListener(_0x1bbb71,_0x21c6ec){return function(){WhatsappAccountEvents[_0x0c58('0x3')](_0x1bbb71,_0x21c6ec);};}exports[_0x0c58('0x4')]=function(_0x1b83a){for(var _0x52d3e1=0x0,_0x3bb237=events[_0x0c58('0x5')];_0x52d3e1<_0x3bb237;_0x52d3e1++){var _0x12c2ee=events[_0x52d3e1];var _0x55c634=createListener(_0x0c58('0x6')+_0x12c2ee,_0x1b83a);WhatsappAccountEvents['on'](_0x12c2ee,_0x55c634);}};