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 _0x5c00=['update','chatInteraction:','./chatInteraction.events','save','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5c00,0x75));var _0x05c0=function(_0x11bc0f,_0x373666){_0x11bc0f=_0x11bc0f-0x0;var _0x3ab0d1=_0x5c00[_0x11bc0f];return _0x3ab0d1;};'use strict';var ChatInteractionEvents=require(_0x05c0('0x0'));var events=[_0x05c0('0x1'),_0x05c0('0x2'),_0x05c0('0x3')];function createListener(_0x4c066c,_0x50f44a){return function(_0x51d20d){_0x50f44a['emit'](_0x4c066c,_0x51d20d);};}function removeListener(_0x3e997d,_0xc5a3c5){return function(){ChatInteractionEvents['removeListener'](_0x3e997d,_0xc5a3c5);};}exports['register']=function(_0x45226d){for(var _0x10a239=0x0,_0xd76359=events['length'];_0x10a239<_0xd76359;_0x10a239++){var _0x18b477=events[_0x10a239];var _0x479714=createListener(_0x05c0('0x4')+_0x18b477,_0x45226d);ChatInteractionEvents['on'](_0x18b477,_0x479714);}};