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 _0x2c81=['./chatInteraction.events','save','removeListener','length','chatInteraction:'];(function(_0x3af091,_0x14cc6f){var _0x5074bc=function(_0x5d3a00){while(--_0x5d3a00){_0x3af091['push'](_0x3af091['shift']());}};_0x5074bc(++_0x14cc6f);}(_0x2c81,0x1d1));var _0x12c8=function(_0x3a52ca,_0x5ce854){_0x3a52ca=_0x3a52ca-0x0;var _0x528c04=_0x2c81[_0x3a52ca];return _0x528c04;};'use strict';var ChatInteractionEvents=require(_0x12c8('0x0'));var events=[_0x12c8('0x1'),'remove','update'];function createListener(_0x12d152,_0x512e60){return function(_0x70bdcf){_0x512e60['emit'](_0x12d152,_0x70bdcf);};}function removeListener(_0x43c1d2,_0x3cfb77){return function(){ChatInteractionEvents[_0x12c8('0x2')](_0x43c1d2,_0x3cfb77);};}exports['register']=function(_0x3177cf){for(var _0x450e8a=0x0,_0xcf5ec4=events[_0x12c8('0x3')];_0x450e8a<_0xcf5ec4;_0x450e8a++){var _0x3f3588=events[_0x450e8a];var _0x188aa6=createListener(_0x12c8('0x4')+_0x3f3588,_0x3177cf);ChatInteractionEvents['on'](_0x3f3588,_0x188aa6);}};