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 _0x03f8=['update','emit','removeListener','length','chatInteraction:','./chatInteraction.events','save','remove'];(function(_0x565757,_0x433f97){var _0x71f8b9=function(_0x31571b){while(--_0x31571b){_0x565757['push'](_0x565757['shift']());}};_0x71f8b9(++_0x433f97);}(_0x03f8,0xf5));var _0x803f=function(_0xe455e7,_0x29fb65){_0xe455e7=_0xe455e7-0x0;var _0xfc683e=_0x03f8[_0xe455e7];return _0xfc683e;};'use strict';var ChatInteractionEvents=require(_0x803f('0x0'));var events=[_0x803f('0x1'),_0x803f('0x2'),_0x803f('0x3')];function createListener(_0x4f35fd,_0x1b881f){return function(_0x2a53d7){_0x1b881f[_0x803f('0x4')](_0x4f35fd,_0x2a53d7);};}function removeListener(_0x5d98ab,_0x21b024){return function(){ChatInteractionEvents[_0x803f('0x5')](_0x5d98ab,_0x21b024);};}exports['register']=function(_0x12cf24){for(var _0x161288=0x0,_0x3537bb=events[_0x803f('0x6')];_0x161288<_0x3537bb;_0x161288++){var _0xe83801=events[_0x161288];var _0x5f6b7e=createListener(_0x803f('0x7')+_0xe83801,_0x12cf24);ChatInteractionEvents['on'](_0xe83801,_0x5f6b7e);}};