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 _0x2131=['update','removeListener','length','chatInteraction:','./chatInteraction.events','save'];(function(_0xc0d9bc,_0x2bd6be){var _0x32ff73=function(_0x28c592){while(--_0x28c592){_0xc0d9bc['push'](_0xc0d9bc['shift']());}};_0x32ff73(++_0x2bd6be);}(_0x2131,0xee));var _0x1213=function(_0x2e72c7,_0x3cefda){_0x2e72c7=_0x2e72c7-0x0;var _0x12f876=_0x2131[_0x2e72c7];return _0x12f876;};'use strict';var ChatInteractionEvents=require(_0x1213('0x0'));var events=[_0x1213('0x1'),'remove',_0x1213('0x2')];function createListener(_0x2dab26,_0x2fc8f5){return function(_0x437c93){_0x2fc8f5['emit'](_0x2dab26,_0x437c93);};}function removeListener(_0xbb5d2,_0x5db678){return function(){ChatInteractionEvents[_0x1213('0x3')](_0xbb5d2,_0x5db678);};}exports['register']=function(_0x4fbbc2){for(var _0x1dc8d3=0x0,_0x1672e2=events[_0x1213('0x4')];_0x1dc8d3<_0x1672e2;_0x1dc8d3++){var _0x4949af=events[_0x1dc8d3];var _0x253e45=createListener(_0x1213('0x5')+_0x4949af,_0x4fbbc2);ChatInteractionEvents['on'](_0x4949af,_0x253e45);}};