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 _0x562d=['./chatInternalMessage.events','save','remove','emit','length'];(function(_0x5e0f59,_0x5d054f){var _0x28bf68=function(_0x33b05d){while(--_0x33b05d){_0x5e0f59['push'](_0x5e0f59['shift']());}};_0x28bf68(++_0x5d054f);}(_0x562d,0xe1));var _0xd562=function(_0x47de1c,_0x22e27d){_0x47de1c=_0x47de1c-0x0;var _0x129312=_0x562d[_0x47de1c];return _0x129312;};'use strict';var ChatInternalMessageEvents=require(_0xd562('0x0'));var events=[_0xd562('0x1'),_0xd562('0x2'),'update'];function createListener(_0x517c30,_0x3ea08c){return function(_0x29f939){_0x3ea08c[_0xd562('0x3')](_0x517c30,_0x29f939);};}function removeListener(_0x4c6430,_0xf71ee1){return function(){ChatInternalMessageEvents['removeListener'](_0x4c6430,_0xf71ee1);};}exports['register']=function(_0x1d05e9){for(var _0x46bf9b=0x0,_0x3e6465=events[_0xd562('0x4')];_0x46bf9b<_0x3e6465;_0x46bf9b++){var _0x21f82a=events[_0x46bf9b];var _0x38e1a7=createListener('chatInternalMessage:'+_0x21f82a,_0x1d05e9);ChatInternalMessageEvents['on'](_0x21f82a,_0x38e1a7);}};