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 _0x2544=['length','openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit','register'];(function(_0x3cc6b8,_0x13939d){var _0x591fea=function(_0x50f078){while(--_0x50f078){_0x3cc6b8['push'](_0x3cc6b8['shift']());}};_0x591fea(++_0x13939d);}(_0x2544,0x72));var _0x4254=function(_0x3cdce0,_0x456f37){_0x3cdce0=_0x3cdce0-0x0;var _0x2bbd57=_0x2544[_0x3cdce0];return _0x2bbd57;};'use strict';var OpenchannelInteractionEvents=require(_0x4254('0x0'));var events=[_0x4254('0x1'),_0x4254('0x2'),_0x4254('0x3')];function createListener(_0xfa1fd1,_0x34a541){return function(_0x23c630){_0x34a541[_0x4254('0x4')](_0xfa1fd1,_0x23c630);};}function removeListener(_0x5c13e4,_0x489240){return function(){OpenchannelInteractionEvents['removeListener'](_0x5c13e4,_0x489240);};}exports[_0x4254('0x5')]=function(_0x425f98){for(var _0x38f322=0x0,_0x189800=events[_0x4254('0x6')];_0x38f322<_0x189800;_0x38f322++){var _0x175f25=events[_0x38f322];var _0x519641=createListener(_0x4254('0x7')+_0x175f25,_0x425f98);OpenchannelInteractionEvents['on'](_0x175f25,_0x519641);}};