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 _0xcd4e=['save','remove','update','emit','register','length','./chatInternalMessage.events'];(function(_0x110214,_0x54cc7e){var _0x5e0070=function(_0x14a122){while(--_0x14a122){_0x110214['push'](_0x110214['shift']());}};_0x5e0070(++_0x54cc7e);}(_0xcd4e,0x187));var _0xecd4=function(_0x3973ca,_0x1bc9d2){_0x3973ca=_0x3973ca-0x0;var _0x4aa09d=_0xcd4e[_0x3973ca];return _0x4aa09d;};'use strict';var ChatInternalMessageEvents=require(_0xecd4('0x0'));var events=[_0xecd4('0x1'),_0xecd4('0x2'),_0xecd4('0x3')];function createListener(_0x5d77c1,_0x4d85d0){return function(_0x6eed98){_0x4d85d0[_0xecd4('0x4')](_0x5d77c1,_0x6eed98);};}function removeListener(_0x59d583,_0x1e1511){return function(){ChatInternalMessageEvents['removeListener'](_0x59d583,_0x1e1511);};}exports[_0xecd4('0x5')]=function(_0x47f6ae){for(var _0x41dd0c=0x0,_0x24fb20=events[_0xecd4('0x6')];_0x41dd0c<_0x24fb20;_0x41dd0c++){var _0x4466f1=events[_0x41dd0c];var _0x181253=createListener('chatInternalMessage:'+_0x4466f1,_0x47f6ae);ChatInternalMessageEvents['on'](_0x4466f1,_0x181253);}};