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 _0x71d8=['length','./openchannelMessage.events','save','remove','update','emit','register'];(function(_0x3fc68e,_0x55afff){var _0x4f5dd5=function(_0x3634a7){while(--_0x3634a7){_0x3fc68e['push'](_0x3fc68e['shift']());}};_0x4f5dd5(++_0x55afff);}(_0x71d8,0x8d));var _0x871d=function(_0x11ca0b,_0x2ec7b2){_0x11ca0b=_0x11ca0b-0x0;var _0x5389cd=_0x71d8[_0x11ca0b];return _0x5389cd;};'use strict';var OpenchannelMessageEvents=require(_0x871d('0x0'));var events=[_0x871d('0x1'),_0x871d('0x2'),_0x871d('0x3')];function createListener(_0x28bf76,_0x40c414){return function(_0x3068f5){_0x40c414[_0x871d('0x4')](_0x28bf76,_0x3068f5);};}function removeListener(_0x2c0dbf,_0x3fbfb0){return function(){OpenchannelMessageEvents['removeListener'](_0x2c0dbf,_0x3fbfb0);};}exports[_0x871d('0x5')]=function(_0x399be7){for(var _0x50d2c5=0x0,_0x4b9d4d=events[_0x871d('0x6')];_0x50d2c5<_0x4b9d4d;_0x50d2c5++){var _0x352445=events[_0x50d2c5];var _0x32f2be=createListener('openchannelMessage:'+_0x352445,_0x399be7);OpenchannelMessageEvents['on'](_0x352445,_0x32f2be);}};