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 _0x757f=['update','emit','removeListener','length','./chatInternalMessage.events','remove'];(function(_0x3a94e1,_0x22e4fd){var _0x6a09d5=function(_0x2d6d1c){while(--_0x2d6d1c){_0x3a94e1['push'](_0x3a94e1['shift']());}};_0x6a09d5(++_0x22e4fd);}(_0x757f,0xee));var _0xf757=function(_0xe9dbe9,_0x14b58a){_0xe9dbe9=_0xe9dbe9-0x0;var _0x4b9ebd=_0x757f[_0xe9dbe9];return _0x4b9ebd;};'use strict';var ChatInternalMessageEvents=require(_0xf757('0x0'));var events=['save',_0xf757('0x1'),_0xf757('0x2')];function createListener(_0x37e870,_0x135d5e){return function(_0x5c5865){_0x135d5e[_0xf757('0x3')](_0x37e870,_0x5c5865);};}function removeListener(_0x26a38a,_0x302fba){return function(){ChatInternalMessageEvents[_0xf757('0x4')](_0x26a38a,_0x302fba);};}exports['register']=function(_0x36b04b){for(var _0x30ccea=0x0,_0x4e1e06=events[_0xf757('0x5')];_0x30ccea<_0x4e1e06;_0x30ccea++){var _0x44b312=events[_0x30ccea];var _0x565224=createListener('chatInternalMessage:'+_0x44b312,_0x36b04b);ChatInternalMessageEvents['on'](_0x44b312,_0x565224);}};