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 _0xf070=['./openchannelAccount.events','save','removeListener','openchannelAccount:'];(function(_0x4610da,_0x78197b){var _0x5e74de=function(_0x435168){while(--_0x435168){_0x4610da['push'](_0x4610da['shift']());}};_0x5e74de(++_0x78197b);}(_0xf070,0xb8));var _0x0f07=function(_0x277f34,_0x438b59){_0x277f34=_0x277f34-0x0;var _0x2d8388=_0xf070[_0x277f34];return _0x2d8388;};'use strict';var OpenchannelAccountEvents=require(_0x0f07('0x0'));var events=[_0x0f07('0x1'),'remove','update'];function createListener(_0x453f4b,_0xa3a481){return function(_0x22594b){_0xa3a481['emit'](_0x453f4b,_0x22594b);};}function removeListener(_0x3070dc,_0x70b49b){return function(){OpenchannelAccountEvents[_0x0f07('0x2')](_0x3070dc,_0x70b49b);};}exports['register']=function(_0x100feb){for(var _0x23ad94=0x0,_0x289d45=events['length'];_0x23ad94<_0x289d45;_0x23ad94++){var _0x1e1904=events[_0x23ad94];var _0x260990=createListener(_0x0f07('0x3')+_0x1e1904,_0x100feb);OpenchannelAccountEvents['on'](_0x1e1904,_0x260990);}};