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 _0xf3da=['chatInternalMessage:','./chatInternalMessage.events','save','emit','register','length'];(function(_0x21bfab,_0x2fee48){var _0x4db318=function(_0x10396d){while(--_0x10396d){_0x21bfab['push'](_0x21bfab['shift']());}};_0x4db318(++_0x2fee48);}(_0xf3da,0xf7));var _0xaf3d=function(_0x37ca19,_0x5c91a0){_0x37ca19=_0x37ca19-0x0;var _0x57766e=_0xf3da[_0x37ca19];return _0x57766e;};'use strict';var ChatInternalMessageEvents=require(_0xaf3d('0x0'));var events=[_0xaf3d('0x1'),'remove','update'];function createListener(_0xe86e97,_0x52b36d){return function(_0x1940d0){_0x52b36d[_0xaf3d('0x2')](_0xe86e97,_0x1940d0);};}function removeListener(_0x410b8e,_0x222c85){return function(){ChatInternalMessageEvents['removeListener'](_0x410b8e,_0x222c85);};}exports[_0xaf3d('0x3')]=function(_0x549c2e){for(var _0x336531=0x0,_0x52c22b=events[_0xaf3d('0x4')];_0x336531<_0x52c22b;_0x336531++){var _0x4882fe=events[_0x336531];var _0xc97cd7=createListener(_0xaf3d('0x5')+_0x4882fe,_0x549c2e);ChatInternalMessageEvents['on'](_0x4882fe,_0xc97cd7);}};