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 _0xdb94=['chatMessage:','save','remove','emit','removeListener','length'];(function(_0x4d763b,_0x4bf344){var _0x5758b7=function(_0x2d0b70){while(--_0x2d0b70){_0x4d763b['push'](_0x4d763b['shift']());}};_0x5758b7(++_0x4bf344);}(_0xdb94,0xe5));var _0x4db9=function(_0x1b2baf,_0x120c94){_0x1b2baf=_0x1b2baf-0x0;var _0x478e2d=_0xdb94[_0x1b2baf];return _0x478e2d;};'use strict';var ChatMessageEvents=require('./chatMessage.events');var events=[_0x4db9('0x0'),_0x4db9('0x1'),'update'];function createListener(_0x26e16b,_0x3b24a6){return function(_0x25b510){_0x3b24a6[_0x4db9('0x2')](_0x26e16b,_0x25b510);};}function removeListener(_0x1f05d4,_0x592097){return function(){ChatMessageEvents[_0x4db9('0x3')](_0x1f05d4,_0x592097);};}exports['register']=function(_0x1d21a8){for(var _0xc76bc1=0x0,_0x1dddb9=events[_0x4db9('0x4')];_0xc76bc1<_0x1dddb9;_0xc76bc1++){var _0x42a857=events[_0xc76bc1];var _0x57c701=createListener(_0x4db9('0x5')+_0x42a857,_0x1d21a8);ChatMessageEvents['on'](_0x42a857,_0x57c701);}};