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 _0x41e0=['update','length','chatInteraction:','./chatInteraction.events','save','remove'];(function(_0x14f532,_0x1d9765){var _0x326828=function(_0x572e5f){while(--_0x572e5f){_0x14f532['push'](_0x14f532['shift']());}};_0x326828(++_0x1d9765);}(_0x41e0,0xe7));var _0x041e=function(_0x53c9a8,_0x5f3e3f){_0x53c9a8=_0x53c9a8-0x0;var _0x54b73a=_0x41e0[_0x53c9a8];return _0x54b73a;};'use strict';var ChatInteractionEvents=require(_0x041e('0x0'));var events=[_0x041e('0x1'),_0x041e('0x2'),_0x041e('0x3')];function createListener(_0x57bb62,_0x5b0ac8){return function(_0x32788b){_0x5b0ac8['emit'](_0x57bb62,_0x32788b);};}function removeListener(_0x45dbbb,_0x10bcc2){return function(){ChatInteractionEvents['removeListener'](_0x45dbbb,_0x10bcc2);};}exports['register']=function(_0x19af25){for(var _0x40b56d=0x0,_0x4c144e=events[_0x041e('0x4')];_0x40b56d<_0x4c144e;_0x40b56d++){var _0x3c5568=events[_0x40b56d];var _0xa598fe=createListener(_0x041e('0x5')+_0x3c5568,_0x19af25);ChatInteractionEvents['on'](_0x3c5568,_0xa598fe);}};