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 _0xbcf7=['remove','length','openchannelAccount:','./openchannelAccount.events','save'];(function(_0xc76959,_0xc46cd1){var _0x28aa72=function(_0x214752){while(--_0x214752){_0xc76959['push'](_0xc76959['shift']());}};_0x28aa72(++_0xc46cd1);}(_0xbcf7,0x134));var _0x7bcf=function(_0x4e1f08,_0x9166bf){_0x4e1f08=_0x4e1f08-0x0;var _0x17f8d2=_0xbcf7[_0x4e1f08];return _0x17f8d2;};'use strict';var OpenchannelAccountEvents=require(_0x7bcf('0x0'));var events=[_0x7bcf('0x1'),_0x7bcf('0x2'),'update'];function createListener(_0x179a0b,_0x1290af){return function(_0x24dad8){_0x1290af['emit'](_0x179a0b,_0x24dad8);};}function removeListener(_0x47a7a4,_0x50b831){return function(){OpenchannelAccountEvents['removeListener'](_0x47a7a4,_0x50b831);};}exports['register']=function(_0x2a98e6){for(var _0x3e31b1=0x0,_0xf1e271=events[_0x7bcf('0x3')];_0x3e31b1<_0xf1e271;_0x3e31b1++){var _0xf81b99=events[_0x3e31b1];var _0x1cd914=createListener(_0x7bcf('0x4')+_0xf81b99,_0x2a98e6);OpenchannelAccountEvents['on'](_0xf81b99,_0x1cd914);}};