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 _0xf9ad=['remove','update','emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0xf9ad,0xf1));var _0xdf9a=function(_0x58c952,_0x303f83){_0x58c952=_0x58c952-0x0;var _0x1be0b3=_0xf9ad[_0x58c952];return _0x1be0b3;};'use strict';var ChatInternalMessageEvents=require(_0xdf9a('0x0'));var events=[_0xdf9a('0x1'),_0xdf9a('0x2'),_0xdf9a('0x3')];function createListener(_0x4af242,_0x53f1fd){return function(_0x58bc7d){_0x53f1fd[_0xdf9a('0x4')](_0x4af242,_0x58bc7d);};}function removeListener(_0x25010c,_0x381dda){return function(){ChatInternalMessageEvents[_0xdf9a('0x5')](_0x25010c,_0x381dda);};}exports[_0xdf9a('0x6')]=function(_0x498c0d){for(var _0xa2f117=0x0,_0x25772e=events[_0xdf9a('0x7')];_0xa2f117<_0x25772e;_0xa2f117++){var _0x3469de=events[_0xa2f117];var _0x10fc37=createListener(_0xdf9a('0x8')+_0x3469de,_0x498c0d);ChatInternalMessageEvents['on'](_0x3469de,_0x10fc37);}};