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 _0xa12e=['remove','emit','register','chatInteraction:'];(function(_0x4c1ab4,_0x1f7d1b){var _0x3bd6fb=function(_0x55498e){while(--_0x55498e){_0x4c1ab4['push'](_0x4c1ab4['shift']());}};_0x3bd6fb(++_0x1f7d1b);}(_0xa12e,0x1bc));var _0xea12=function(_0x5e57aa,_0x5cf040){_0x5e57aa=_0x5e57aa-0x0;var _0x4c376f=_0xa12e[_0x5e57aa];return _0x4c376f;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=['save',_0xea12('0x0'),'update'];function createListener(_0x11714c,_0x1eeba1){return function(_0x167c20){_0x1eeba1[_0xea12('0x1')](_0x11714c,_0x167c20);};}function removeListener(_0x125e64,_0x365ba0){return function(){ChatInteractionEvents['removeListener'](_0x125e64,_0x365ba0);};}exports[_0xea12('0x2')]=function(_0x3a4019){for(var _0x57418b=0x0,_0x3bffb1=events['length'];_0x57418b<_0x3bffb1;_0x57418b++){var _0xd4d5b=events[_0x57418b];var _0x7c6ee0=createListener(_0xea12('0x3')+_0xd4d5b,_0x3a4019);ChatInteractionEvents['on'](_0xd4d5b,_0x7c6ee0);}};