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 _0xffc7=['length','openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit','register'];(function(_0x2f5ac5,_0x1ee939){var _0x37c9a8=function(_0x15031f){while(--_0x15031f){_0x2f5ac5['push'](_0x2f5ac5['shift']());}};_0x37c9a8(++_0x1ee939);}(_0xffc7,0x192));var _0x7ffc=function(_0x142762,_0x5520b3){_0x142762=_0x142762-0x0;var _0x22281e=_0xffc7[_0x142762];return _0x22281e;};'use strict';var OpenchannelInteractionEvents=require(_0x7ffc('0x0'));var events=[_0x7ffc('0x1'),_0x7ffc('0x2'),_0x7ffc('0x3')];function createListener(_0x263751,_0x563381){return function(_0x239729){_0x563381[_0x7ffc('0x4')](_0x263751,_0x239729);};}function removeListener(_0x31dbaf,_0x1ffb8c){return function(){OpenchannelInteractionEvents['removeListener'](_0x31dbaf,_0x1ffb8c);};}exports[_0x7ffc('0x5')]=function(_0x109b9f){for(var _0x4c4106=0x0,_0x500531=events[_0x7ffc('0x6')];_0x4c4106<_0x500531;_0x4c4106++){var _0x35d825=events[_0x4c4106];var _0x4c4a62=createListener(_0x7ffc('0x7')+_0x35d825,_0x109b9f);OpenchannelInteractionEvents['on'](_0x35d825,_0x4c4a62);}};