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 _0xaf32=['update','emit','removeListener','register','length','chatInteraction:','./chatInteraction.events','save'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xaf32,0x1ce));var _0x2af3=function(_0x21c0de,_0x4a9720){_0x21c0de=_0x21c0de-0x0;var _0x32229e=_0xaf32[_0x21c0de];return _0x32229e;};'use strict';var ChatInteractionEvents=require(_0x2af3('0x0'));var events=[_0x2af3('0x1'),'remove',_0x2af3('0x2')];function createListener(_0x401944,_0x5e715e){return function(_0x162519){_0x5e715e[_0x2af3('0x3')](_0x401944,_0x162519);};}function removeListener(_0x4d03a0,_0x332325){return function(){ChatInteractionEvents[_0x2af3('0x4')](_0x4d03a0,_0x332325);};}exports[_0x2af3('0x5')]=function(_0x52571c){for(var _0x17f804=0x0,_0x19fa3e=events[_0x2af3('0x6')];_0x17f804<_0x19fa3e;_0x17f804++){var _0x3b4bfa=events[_0x17f804];var _0x4ea700=createListener(_0x2af3('0x7')+_0x3b4bfa,_0x52571c);ChatInteractionEvents['on'](_0x3b4bfa,_0x4ea700);}};