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 _0xcd78=['save','remove','update','length','openchannelInteraction:','./openchannelInteraction.events'];(function(_0x29f4d6,_0x26aea5){var _0x1fa4fd=function(_0xf2ae58){while(--_0xf2ae58){_0x29f4d6['push'](_0x29f4d6['shift']());}};_0x1fa4fd(++_0x26aea5);}(_0xcd78,0x1b5));var _0x8cd7=function(_0x4839b3,_0x3c8b17){_0x4839b3=_0x4839b3-0x0;var _0x33efa1=_0xcd78[_0x4839b3];return _0x33efa1;};'use strict';var OpenchannelInteractionEvents=require(_0x8cd7('0x0'));var events=[_0x8cd7('0x1'),_0x8cd7('0x2'),_0x8cd7('0x3')];function createListener(_0xdcdb61,_0x22f058){return function(_0xc64fed){_0x22f058['emit'](_0xdcdb61,_0xc64fed);};}function removeListener(_0x5fe864,_0x575dc3){return function(){OpenchannelInteractionEvents['removeListener'](_0x5fe864,_0x575dc3);};}exports['register']=function(_0x3cbc83){for(var _0x5e603d=0x0,_0x107ddc=events[_0x8cd7('0x4')];_0x5e603d<_0x107ddc;_0x5e603d++){var _0x3a980c=events[_0x5e603d];var _0x183e8e=createListener(_0x8cd7('0x5')+_0x3a980c,_0x3cbc83);OpenchannelInteractionEvents['on'](_0x3a980c,_0x183e8e);}};