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 _0xc17f=['./chatInternalMessage.events','save','remove','update','emit','removeListener','length','chatInternalMessage:'];(function(_0x2f1858,_0x871a8f){var _0xb281e=function(_0x25be40){while(--_0x25be40){_0x2f1858['push'](_0x2f1858['shift']());}};_0xb281e(++_0x871a8f);}(_0xc17f,0xb8));var _0xfc17=function(_0x3e1e03,_0x3bb318){_0x3e1e03=_0x3e1e03-0x0;var _0x3cb8df=_0xc17f[_0x3e1e03];return _0x3cb8df;};'use strict';var ChatInternalMessageEvents=require(_0xfc17('0x0'));var events=[_0xfc17('0x1'),_0xfc17('0x2'),_0xfc17('0x3')];function createListener(_0x1f3b0d,_0x218e7e){return function(_0x50b38b){_0x218e7e[_0xfc17('0x4')](_0x1f3b0d,_0x50b38b);};}function removeListener(_0x5f2b93,_0x9a7054){return function(){ChatInternalMessageEvents[_0xfc17('0x5')](_0x5f2b93,_0x9a7054);};}exports['register']=function(_0x3363c2){for(var _0x33cebd=0x0,_0x21c2ef=events[_0xfc17('0x6')];_0x33cebd<_0x21c2ef;_0x33cebd++){var _0x404ee0=events[_0x33cebd];var _0x3cd590=createListener(_0xfc17('0x7')+_0x404ee0,_0x3363c2);ChatInternalMessageEvents['on'](_0x404ee0,_0x3cd590);}};