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 _0x497d=['removeListener','length','chatInteraction:','save','remove','update','emit'];(function(_0x55ab7c,_0x4455f2){var _0x3916ee=function(_0x825e51){while(--_0x825e51){_0x55ab7c['push'](_0x55ab7c['shift']());}};_0x3916ee(++_0x4455f2);}(_0x497d,0x1a0));var _0xd497=function(_0x1fd80a,_0x1240c1){_0x1fd80a=_0x1fd80a-0x0;var _0xa9ffa9=_0x497d[_0x1fd80a];return _0xa9ffa9;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0xd497('0x0'),_0xd497('0x1'),_0xd497('0x2')];function createListener(_0x48b789,_0x81b05){return function(_0x1e9593){_0x81b05[_0xd497('0x3')](_0x48b789,_0x1e9593);};}function removeListener(_0x32a20b,_0x3b56eb){return function(){ChatInteractionEvents[_0xd497('0x4')](_0x32a20b,_0x3b56eb);};}exports['register']=function(_0xbcd850){for(var _0x1b92aa=0x0,_0x156dc8=events[_0xd497('0x5')];_0x1b92aa<_0x156dc8;_0x1b92aa++){var _0x11bb96=events[_0x1b92aa];var _0xdef1fa=createListener(_0xd497('0x6')+_0x11bb96,_0xbcd850);ChatInteractionEvents['on'](_0x11bb96,_0xdef1fa);}};