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 _0x24a5=['openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit','removeListener','register','length'];(function(_0x391d47,_0x3d9d16){var _0x4fc3ac=function(_0x2a986e){while(--_0x2a986e){_0x391d47['push'](_0x391d47['shift']());}};_0x4fc3ac(++_0x3d9d16);}(_0x24a5,0x17b));var _0x524a=function(_0xfc682a,_0x50aba7){_0xfc682a=_0xfc682a-0x0;var _0x23edee=_0x24a5[_0xfc682a];return _0x23edee;};'use strict';var OpenchannelInteractionEvents=require(_0x524a('0x0'));var events=[_0x524a('0x1'),_0x524a('0x2'),_0x524a('0x3')];function createListener(_0x4c52fa,_0x37cb6c){return function(_0x27d51e){_0x37cb6c[_0x524a('0x4')](_0x4c52fa,_0x27d51e);};}function removeListener(_0x32b501,_0x37635d){return function(){OpenchannelInteractionEvents[_0x524a('0x5')](_0x32b501,_0x37635d);};}exports[_0x524a('0x6')]=function(_0x40a12c){for(var _0x47d09a=0x0,_0x550c5f=events[_0x524a('0x7')];_0x47d09a<_0x550c5f;_0x47d09a++){var _0x5eebec=events[_0x47d09a];var _0xf969ca=createListener(_0x524a('0x8')+_0x5eebec,_0x40a12c);OpenchannelInteractionEvents['on'](_0x5eebec,_0xf969ca);}};