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 _0xa136=['chatInternalMessage:','save','remove','removeListener'];(function(_0x341da6,_0x56f1c9){var _0x42e233=function(_0x1dc352){while(--_0x1dc352){_0x341da6['push'](_0x341da6['shift']());}};_0x42e233(++_0x56f1c9);}(_0xa136,0xe5));var _0x6a13=function(_0x26ac6b,_0x3e0e21){_0x26ac6b=_0x26ac6b-0x0;var _0x1972ec=_0xa136[_0x26ac6b];return _0x1972ec;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x6a13('0x0'),_0x6a13('0x1'),'update'];function createListener(_0xaaf092,_0x2b1256){return function(_0x551695){_0x2b1256['emit'](_0xaaf092,_0x551695);};}function removeListener(_0x48be4c,_0x58a557){return function(){ChatInternalMessageEvents[_0x6a13('0x2')](_0x48be4c,_0x58a557);};}exports['register']=function(_0x53ff4c){for(var _0x206c94=0x0,_0x321fcf=events['length'];_0x206c94<_0x321fcf;_0x206c94++){var _0x53c5a3=events[_0x206c94];var _0x7079fd=createListener(_0x6a13('0x3')+_0x53c5a3,_0x53ff4c);ChatInternalMessageEvents['on'](_0x53c5a3,_0x7079fd);}};