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 _0x202c=['emit','removeListener','length','chatInternalMessage:','./chatInternalMessage.events','update'];(function(_0x441fae,_0x3ab2ee){var _0x189025=function(_0x4914e1){while(--_0x4914e1){_0x441fae['push'](_0x441fae['shift']());}};_0x189025(++_0x3ab2ee);}(_0x202c,0x178));var _0xc202=function(_0x16f73d,_0x574564){_0x16f73d=_0x16f73d-0x0;var _0x39bbcf=_0x202c[_0x16f73d];return _0x39bbcf;};'use strict';var ChatInternalMessageEvents=require(_0xc202('0x0'));var events=['save','remove',_0xc202('0x1')];function createListener(_0x1ab6a1,_0x27b3b2){return function(_0x5c5dec){_0x27b3b2[_0xc202('0x2')](_0x1ab6a1,_0x5c5dec);};}function removeListener(_0x155c3b,_0x1763f5){return function(){ChatInternalMessageEvents[_0xc202('0x3')](_0x155c3b,_0x1763f5);};}exports['register']=function(_0x28e51c){for(var _0x68d363=0x0,_0x59563a=events[_0xc202('0x4')];_0x68d363<_0x59563a;_0x68d363++){var _0x574549=events[_0x68d363];var _0x872c1a=createListener(_0xc202('0x5')+_0x574549,_0x28e51c);ChatInternalMessageEvents['on'](_0x574549,_0x872c1a);}};