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 _0xc4d7=['register','openchannelAccount:','./openchannelAccount.events','remove','update'];(function(_0x3a5061,_0x17cb02){var _0x310beb=function(_0x68fdb1){while(--_0x68fdb1){_0x3a5061['push'](_0x3a5061['shift']());}};_0x310beb(++_0x17cb02);}(_0xc4d7,0x156));var _0x7c4d=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xc4d7[_0x14add3];return _0x4a174f;};'use strict';var OpenchannelAccountEvents=require(_0x7c4d('0x0'));var events=['save',_0x7c4d('0x1'),_0x7c4d('0x2')];function createListener(_0x4ef900,_0x1ffd1d){return function(_0x44fe07){_0x1ffd1d['emit'](_0x4ef900,_0x44fe07);};}function removeListener(_0x5d1844,_0x472426){return function(){OpenchannelAccountEvents['removeListener'](_0x5d1844,_0x472426);};}exports[_0x7c4d('0x3')]=function(_0x47e13e){for(var _0x3911df=0x0,_0x9e4353=events['length'];_0x3911df<_0x9e4353;_0x3911df++){var _0x56e9c7=events[_0x3911df];var _0x3a1fd4=createListener(_0x7c4d('0x4')+_0x56e9c7,_0x47e13e);OpenchannelAccountEvents['on'](_0x56e9c7,_0x3a1fd4);}};