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 _0x15db=['update','removeListener','length','./chatInternalMessage.events','save','remove'];(function(_0x32ad36,_0x5c18c0){var _0x1972e3=function(_0x9ba9f0){while(--_0x9ba9f0){_0x32ad36['push'](_0x32ad36['shift']());}};_0x1972e3(++_0x5c18c0);}(_0x15db,0xf9));var _0xb15d=function(_0x4a76d7,_0x1dc4ed){_0x4a76d7=_0x4a76d7-0x0;var _0x368d2b=_0x15db[_0x4a76d7];return _0x368d2b;};'use strict';var ChatInternalMessageEvents=require(_0xb15d('0x0'));var events=[_0xb15d('0x1'),_0xb15d('0x2'),_0xb15d('0x3')];function createListener(_0x2550ad,_0x17b750){return function(_0x4a7538){_0x17b750['emit'](_0x2550ad,_0x4a7538);};}function removeListener(_0x59b9aa,_0x494bcc){return function(){ChatInternalMessageEvents[_0xb15d('0x4')](_0x59b9aa,_0x494bcc);};}exports['register']=function(_0x1b44d6){for(var _0x10f944=0x0,_0x5255f=events[_0xb15d('0x5')];_0x10f944<_0x5255f;_0x10f944++){var _0x82c188=events[_0x10f944];var _0x337e06=createListener('chatInternalMessage:'+_0x82c188,_0x1b44d6);ChatInternalMessageEvents['on'](_0x82c188,_0x337e06);}};