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 _0x720e=['update','emit','register','openchannelMessage:','./openchannelMessage.events','save','remove'];(function(_0x39872e,_0xf01729){var _0x70015d=function(_0x519236){while(--_0x519236){_0x39872e['push'](_0x39872e['shift']());}};_0x70015d(++_0xf01729);}(_0x720e,0x18c));var _0xe720=function(_0x534617,_0x41a7ba){_0x534617=_0x534617-0x0;var _0x516e6a=_0x720e[_0x534617];return _0x516e6a;};'use strict';var OpenchannelMessageEvents=require(_0xe720('0x0'));var events=[_0xe720('0x1'),_0xe720('0x2'),_0xe720('0x3')];function createListener(_0x3eb9e2,_0xa4176f){return function(_0x43a79f){_0xa4176f[_0xe720('0x4')](_0x3eb9e2,_0x43a79f);};}function removeListener(_0x260d77,_0xdc3d13){return function(){OpenchannelMessageEvents['removeListener'](_0x260d77,_0xdc3d13);};}exports[_0xe720('0x5')]=function(_0x16c77e){for(var _0x4eb47c=0x0,_0x1d5963=events['length'];_0x4eb47c<_0x1d5963;_0x4eb47c++){var _0x11aac7=events[_0x4eb47c];var _0x2e1664=createListener(_0xe720('0x6')+_0x11aac7,_0x16c77e);OpenchannelMessageEvents['on'](_0x11aac7,_0x2e1664);}};