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 _0x34ec=['update','openchannelMessage:','remove'];(function(_0x4487d9,_0x4b8147){var _0x4c1072=function(_0x11fcca){while(--_0x11fcca){_0x4487d9['push'](_0x4487d9['shift']());}};_0x4c1072(++_0x4b8147);}(_0x34ec,0x1f4));var _0xc34e=function(_0x45b627,_0x568fc6){_0x45b627=_0x45b627-0x0;var _0x228da4=_0x34ec[_0x45b627];return _0x228da4;};'use strict';var OpenchannelMessageEvents=require('./openchannelMessage.events');var events=['save',_0xc34e('0x0'),_0xc34e('0x1')];function createListener(_0x1453fc,_0x42fd3a){return function(_0x54008f){_0x42fd3a['emit'](_0x1453fc,_0x54008f);};}function removeListener(_0x21a353,_0x1e549d){return function(){OpenchannelMessageEvents['removeListener'](_0x21a353,_0x1e549d);};}exports['register']=function(_0x16c63c){for(var _0x12f004=0x0,_0x2bca29=events['length'];_0x12f004<_0x2bca29;_0x12f004++){var _0x3d2636=events[_0x12f004];var _0x8a2a50=createListener(_0xc34e('0x2')+_0x3d2636,_0x16c63c);OpenchannelMessageEvents['on'](_0x3d2636,_0x8a2a50);}};