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 _0xa9c7=['length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update','emit','removeListener','register'];(function(_0x484a00,_0x2e3622){var _0x180c1b=function(_0x23e82d){while(--_0x23e82d){_0x484a00['push'](_0x484a00['shift']());}};_0x180c1b(++_0x2e3622);}(_0xa9c7,0x158));var _0x7a9c=function(_0x46c1d5,_0x5ca335){_0x46c1d5=_0x46c1d5-0x0;var _0x40fe7b=_0xa9c7[_0x46c1d5];return _0x40fe7b;};'use strict';var ChatInternalMessageEvents=require(_0x7a9c('0x0'));var events=[_0x7a9c('0x1'),_0x7a9c('0x2'),_0x7a9c('0x3')];function createListener(_0x567d45,_0x819db5){return function(_0x3acc26){_0x819db5[_0x7a9c('0x4')](_0x567d45,_0x3acc26);};}function removeListener(_0x12605b,_0x5d54ad){return function(){ChatInternalMessageEvents[_0x7a9c('0x5')](_0x12605b,_0x5d54ad);};}exports[_0x7a9c('0x6')]=function(_0x105347){for(var _0x38c98d=0x0,_0x11fca1=events[_0x7a9c('0x7')];_0x38c98d<_0x11fca1;_0x38c98d++){var _0x3f9bfa=events[_0x38c98d];var _0x34688c=createListener(_0x7a9c('0x8')+_0x3f9bfa,_0x105347);ChatInternalMessageEvents['on'](_0x3f9bfa,_0x34688c);}};