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 _0xd983=['emit','removeListener','register','length','openchannelMessage:','./openchannelMessage.events','save','remove'];(function(_0x41410f,_0x5eb098){var _0x473916=function(_0x3ea4ac){while(--_0x3ea4ac){_0x41410f['push'](_0x41410f['shift']());}};_0x473916(++_0x5eb098);}(_0xd983,0x7d));var _0x3d98=function(_0x3e60b7,_0x429a14){_0x3e60b7=_0x3e60b7-0x0;var _0x12f152=_0xd983[_0x3e60b7];return _0x12f152;};'use strict';var OpenchannelMessageEvents=require(_0x3d98('0x0'));var events=[_0x3d98('0x1'),_0x3d98('0x2'),'update'];function createListener(_0x282341,_0x1d5601){return function(_0x1cb3ca){_0x1d5601[_0x3d98('0x3')](_0x282341,_0x1cb3ca);};}function removeListener(_0x28d595,_0x2d4a92){return function(){OpenchannelMessageEvents[_0x3d98('0x4')](_0x28d595,_0x2d4a92);};}exports[_0x3d98('0x5')]=function(_0x611f2d){for(var _0x21450e=0x0,_0x27df6e=events[_0x3d98('0x6')];_0x21450e<_0x27df6e;_0x21450e++){var _0x2ee957=events[_0x21450e];var _0x5b4af0=createListener(_0x3d98('0x7')+_0x2ee957,_0x611f2d);OpenchannelMessageEvents['on'](_0x2ee957,_0x5b4af0);}};