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 _0x774e=['save','remove','emit','register','length','openchannelInteraction:','./openchannelInteraction.events'];(function(_0x3f6368,_0x9ba37f){var _0x75cea4=function(_0x113196){while(--_0x113196){_0x3f6368['push'](_0x3f6368['shift']());}};_0x75cea4(++_0x9ba37f);}(_0x774e,0xd8));var _0xe774=function(_0x307cbe,_0x5528ac){_0x307cbe=_0x307cbe-0x0;var _0x413d7a=_0x774e[_0x307cbe];return _0x413d7a;};'use strict';var OpenchannelInteractionEvents=require(_0xe774('0x0'));var events=[_0xe774('0x1'),_0xe774('0x2'),'update'];function createListener(_0x1ea746,_0x406b58){return function(_0x25941d){_0x406b58[_0xe774('0x3')](_0x1ea746,_0x25941d);};}function removeListener(_0x1b9cac,_0x57d8ae){return function(){OpenchannelInteractionEvents['removeListener'](_0x1b9cac,_0x57d8ae);};}exports[_0xe774('0x4')]=function(_0xb418c4){for(var _0x2d04f4=0x0,_0x268d1f=events[_0xe774('0x5')];_0x2d04f4<_0x268d1f;_0x2d04f4++){var _0x17435b=events[_0x2d04f4];var _0x987a0d=createListener(_0xe774('0x6')+_0x17435b,_0xb418c4);OpenchannelInteractionEvents['on'](_0x17435b,_0x987a0d);}};