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 _0xa488=['length','./chatInteraction.events','save','remove','update','emit','removeListener'];(function(_0x14ec9d,_0x45d283){var _0x3636df=function(_0x472568){while(--_0x472568){_0x14ec9d['push'](_0x14ec9d['shift']());}};_0x3636df(++_0x45d283);}(_0xa488,0x6a));var _0x8a48=function(_0x581543,_0x5d08cf){_0x581543=_0x581543-0x0;var _0x2845f5=_0xa488[_0x581543];return _0x2845f5;};'use strict';var ChatInteractionEvents=require(_0x8a48('0x0'));var events=[_0x8a48('0x1'),_0x8a48('0x2'),_0x8a48('0x3')];function createListener(_0x1b7e1b,_0x3890ad){return function(_0x324c52){_0x3890ad[_0x8a48('0x4')](_0x1b7e1b,_0x324c52);};}function removeListener(_0x2ad0cf,_0x651d97){return function(){ChatInteractionEvents[_0x8a48('0x5')](_0x2ad0cf,_0x651d97);};}exports['register']=function(_0x4af466){for(var _0x59a9e3=0x0,_0x4e6b49=events[_0x8a48('0x6')];_0x59a9e3<_0x4e6b49;_0x59a9e3++){var _0x374dc5=events[_0x59a9e3];var _0x41e038=createListener('chatInteraction:'+_0x374dc5,_0x4af466);ChatInteractionEvents['on'](_0x374dc5,_0x41e038);}};