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 _0x5607=['emit','register','length','save','remove'];(function(_0x2552e2,_0x4fb60a){var _0x27922b=function(_0x3ff1cb){while(--_0x3ff1cb){_0x2552e2['push'](_0x2552e2['shift']());}};_0x27922b(++_0x4fb60a);}(_0x5607,0x8f));var _0x7560=function(_0x1c8899,_0xe398a8){_0x1c8899=_0x1c8899-0x0;var _0x233970=_0x5607[_0x1c8899];return _0x233970;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x7560('0x0'),_0x7560('0x1'),'update'];function createListener(_0x5f0238,_0xd36cb6){return function(_0x5b0ecd){_0xd36cb6[_0x7560('0x2')](_0x5f0238,_0x5b0ecd);};}function removeListener(_0x45281e,_0x20e360){return function(){ChatInteractionEvents['removeListener'](_0x45281e,_0x20e360);};}exports[_0x7560('0x3')]=function(_0x38894a){for(var _0x585c86=0x0,_0x5d7aa7=events[_0x7560('0x4')];_0x585c86<_0x5d7aa7;_0x585c86++){var _0x56b9aa=events[_0x585c86];var _0x420f29=createListener('chatInteraction:'+_0x56b9aa,_0x38894a);ChatInteractionEvents['on'](_0x56b9aa,_0x420f29);}};