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 _0xf8cc=['save','remove','emit','removeListener','./openchannelMessage.events'];(function(_0x5b9ce2,_0x3c95b4){var _0x43428e=function(_0xf39f9d){while(--_0xf39f9d){_0x5b9ce2['push'](_0x5b9ce2['shift']());}};_0x43428e(++_0x3c95b4);}(_0xf8cc,0x1e4));var _0xcf8c=function(_0x1deffe,_0x586d4c){_0x1deffe=_0x1deffe-0x0;var _0x1c3569=_0xf8cc[_0x1deffe];return _0x1c3569;};'use strict';var OpenchannelMessageEvents=require(_0xcf8c('0x0'));var events=[_0xcf8c('0x1'),_0xcf8c('0x2'),'update'];function createListener(_0x224b9a,_0x3b2b04){return function(_0x50d2b2){_0x3b2b04[_0xcf8c('0x3')](_0x224b9a,_0x50d2b2);};}function removeListener(_0x34c7c7,_0x94f6c9){return function(){OpenchannelMessageEvents[_0xcf8c('0x4')](_0x34c7c7,_0x94f6c9);};}exports['register']=function(_0x4d9b27){for(var _0x5a2c60=0x0,_0x5d27cd=events['length'];_0x5a2c60<_0x5d27cd;_0x5a2c60++){var _0x4600bb=events[_0x5a2c60];var _0x40f060=createListener('openchannelMessage:'+_0x4600bb,_0x4d9b27);OpenchannelMessageEvents['on'](_0x4600bb,_0x40f060);}};