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 _0xcbfb=['update','emit','length','chatInteraction:','./chatInteraction.events','save'];(function(_0x30e344,_0x5ba1dd){var _0x45013c=function(_0x612c30){while(--_0x612c30){_0x30e344['push'](_0x30e344['shift']());}};_0x45013c(++_0x5ba1dd);}(_0xcbfb,0x12a));var _0xbcbf=function(_0x8db583,_0x5bb1b3){_0x8db583=_0x8db583-0x0;var _0x276f94=_0xcbfb[_0x8db583];return _0x276f94;};'use strict';var ChatInteractionEvents=require(_0xbcbf('0x0'));var events=[_0xbcbf('0x1'),'remove',_0xbcbf('0x2')];function createListener(_0x276333,_0x22b68d){return function(_0x96f38){_0x22b68d[_0xbcbf('0x3')](_0x276333,_0x96f38);};}function removeListener(_0x29b55c,_0x2500cd){return function(){ChatInteractionEvents['removeListener'](_0x29b55c,_0x2500cd);};}exports['register']=function(_0x25f98f){for(var _0x27368e=0x0,_0x145187=events[_0xbcbf('0x4')];_0x27368e<_0x145187;_0x27368e++){var _0x2d781b=events[_0x27368e];var _0x31d7d8=createListener(_0xbcbf('0x5')+_0x2d781b,_0x25f98f);ChatInteractionEvents['on'](_0x2d781b,_0x31d7d8);}};