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 _0x10ec=['./chatInternalMessage.events','save','remove','emit','removeListener','register','length','chatInternalMessage:'];(function(_0x69a451,_0x49fd37){var _0x3d6ef5=function(_0x27ebf4){while(--_0x27ebf4){_0x69a451['push'](_0x69a451['shift']());}};_0x3d6ef5(++_0x49fd37);}(_0x10ec,0x110));var _0xc10e=function(_0x5d6456,_0x58ecc7){_0x5d6456=_0x5d6456-0x0;var _0x4d66c1=_0x10ec[_0x5d6456];return _0x4d66c1;};'use strict';var ChatInternalMessageEvents=require(_0xc10e('0x0'));var events=[_0xc10e('0x1'),_0xc10e('0x2'),'update'];function createListener(_0xac748b,_0x21e1d8){return function(_0xcae70b){_0x21e1d8[_0xc10e('0x3')](_0xac748b,_0xcae70b);};}function removeListener(_0xc778c9,_0x570598){return function(){ChatInternalMessageEvents[_0xc10e('0x4')](_0xc778c9,_0x570598);};}exports[_0xc10e('0x5')]=function(_0x58917a){for(var _0x3f82a8=0x0,_0x2894b0=events[_0xc10e('0x6')];_0x3f82a8<_0x2894b0;_0x3f82a8++){var _0x373be8=events[_0x3f82a8];var _0x522c04=createListener(_0xc10e('0x7')+_0x373be8,_0x58917a);ChatInternalMessageEvents['on'](_0x373be8,_0x522c04);}};