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 _0x0ad3=['emit','register','./chatInteraction.events','save','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x0ad3,0x188));var _0x30ad=function(_0x301ee6,_0x5aff44){_0x301ee6=_0x301ee6-0x0;var _0x2024be=_0x0ad3[_0x301ee6];return _0x2024be;};'use strict';var ChatInteractionEvents=require(_0x30ad('0x0'));var events=[_0x30ad('0x1'),_0x30ad('0x2'),'update'];function createListener(_0x4e7e36,_0x5d7535){return function(_0x3d174f){_0x5d7535[_0x30ad('0x3')](_0x4e7e36,_0x3d174f);};}function removeListener(_0x512096,_0x264989){return function(){ChatInteractionEvents['removeListener'](_0x512096,_0x264989);};}exports[_0x30ad('0x4')]=function(_0x261dd1){for(var _0x2c7c2f=0x0,_0x22bed7=events['length'];_0x2c7c2f<_0x22bed7;_0x2c7c2f++){var _0x3f7bb1=events[_0x2c7c2f];var _0x51e01b=createListener('chatInteraction:'+_0x3f7bb1,_0x261dd1);ChatInteractionEvents['on'](_0x3f7bb1,_0x51e01b);}};