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 _0x231d=['update','emit','removeListener','register','length','openchannelInteraction:','remove'];(function(_0x3cd133,_0x222fcb){var _0x2512c8=function(_0x484491){while(--_0x484491){_0x3cd133['push'](_0x3cd133['shift']());}};_0x2512c8(++_0x222fcb);}(_0x231d,0x187));var _0xd231=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x231d[_0x20a584];return _0x4b41a8;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=['save',_0xd231('0x0'),_0xd231('0x1')];function createListener(_0x1cef29,_0x289d16){return function(_0x3ae521){_0x289d16[_0xd231('0x2')](_0x1cef29,_0x3ae521);};}function removeListener(_0x3d4eda,_0x230e1c){return function(){OpenchannelInteractionEvents[_0xd231('0x3')](_0x3d4eda,_0x230e1c);};}exports[_0xd231('0x4')]=function(_0x2b01c1){for(var _0x48509d=0x0,_0x55eaf5=events[_0xd231('0x5')];_0x48509d<_0x55eaf5;_0x48509d++){var _0x391919=events[_0x48509d];var _0x427313=createListener(_0xd231('0x6')+_0x391919,_0x2b01c1);OpenchannelInteractionEvents['on'](_0x391919,_0x427313);}};