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 _0xcba7=['length','./chatInteraction.events','save','remove','update','emit','removeListener','register'];(function(_0x4109f3,_0x257ef8){var _0x31c848=function(_0x304bf3){while(--_0x304bf3){_0x4109f3['push'](_0x4109f3['shift']());}};_0x31c848(++_0x257ef8);}(_0xcba7,0x199));var _0x7cba=function(_0x4b5f1f,_0x1fee93){_0x4b5f1f=_0x4b5f1f-0x0;var _0x3bb747=_0xcba7[_0x4b5f1f];return _0x3bb747;};'use strict';var ChatInteractionEvents=require(_0x7cba('0x0'));var events=[_0x7cba('0x1'),_0x7cba('0x2'),_0x7cba('0x3')];function createListener(_0x5e59d1,_0x119b7f){return function(_0x461067){_0x119b7f[_0x7cba('0x4')](_0x5e59d1,_0x461067);};}function removeListener(_0x4fa145,_0x251250){return function(){ChatInteractionEvents[_0x7cba('0x5')](_0x4fa145,_0x251250);};}exports[_0x7cba('0x6')]=function(_0x2b0112){for(var _0x285928=0x0,_0x12bc28=events[_0x7cba('0x7')];_0x285928<_0x12bc28;_0x285928++){var _0x435722=events[_0x285928];var _0x1a1cef=createListener('chatInteraction:'+_0x435722,_0x2b0112);ChatInteractionEvents['on'](_0x435722,_0x1a1cef);}};