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 _0x5a82=['update','emit','register','length','chatInteraction:','./chatInteraction.events','remove'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0x5a82,0x108));var _0x25a8=function(_0x3464e0,_0x1b8e8a){_0x3464e0=_0x3464e0-0x0;var _0x266ab2=_0x5a82[_0x3464e0];return _0x266ab2;};'use strict';var ChatInteractionEvents=require(_0x25a8('0x0'));var events=['save',_0x25a8('0x1'),_0x25a8('0x2')];function createListener(_0x245e61,_0x74edf2){return function(_0x49a9bf){_0x74edf2[_0x25a8('0x3')](_0x245e61,_0x49a9bf);};}function removeListener(_0x546912,_0x3a88a7){return function(){ChatInteractionEvents['removeListener'](_0x546912,_0x3a88a7);};}exports[_0x25a8('0x4')]=function(_0xc34c5d){for(var _0x278e79=0x0,_0x2bffbf=events[_0x25a8('0x5')];_0x278e79<_0x2bffbf;_0x278e79++){var _0x4e8cda=events[_0x278e79];var _0x40d747=createListener(_0x25a8('0x6')+_0x4e8cda,_0xc34c5d);ChatInteractionEvents['on'](_0x4e8cda,_0x40d747);}};