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 _0x80ce=['length','chatInternalMessage:','update','emit'];(function(_0x275caa,_0x166d5e){var _0x28d670=function(_0x2a20e1){while(--_0x2a20e1){_0x275caa['push'](_0x275caa['shift']());}};_0x28d670(++_0x166d5e);}(_0x80ce,0xae));var _0xe80c=function(_0x489127,_0xf245e7){_0x489127=_0x489127-0x0;var _0xff8429=_0x80ce[_0x489127];return _0xff8429;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=['save','remove',_0xe80c('0x0')];function createListener(_0x150228,_0x52217f){return function(_0x23bc31){_0x52217f[_0xe80c('0x1')](_0x150228,_0x23bc31);};}function removeListener(_0x4372b2,_0x57043c){return function(){ChatInternalMessageEvents['removeListener'](_0x4372b2,_0x57043c);};}exports['register']=function(_0x48d62c){for(var _0x19b480=0x0,_0x320a7e=events[_0xe80c('0x2')];_0x19b480<_0x320a7e;_0x19b480++){var _0x591a4a=events[_0x19b480];var _0x4da07c=createListener(_0xe80c('0x3')+_0x591a4a,_0x48d62c);ChatInternalMessageEvents['on'](_0x591a4a,_0x4da07c);}};