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 _0x4c50=['openchannelMessage:','./openchannelMessage.events','remove','emit','removeListener','register','length'];(function(_0x11f0e3,_0x5170bc){var _0x2892e8=function(_0x3292b2){while(--_0x3292b2){_0x11f0e3['push'](_0x11f0e3['shift']());}};_0x2892e8(++_0x5170bc);}(_0x4c50,0x1f2));var _0x04c5=function(_0x1a7e1f,_0x1c71dd){_0x1a7e1f=_0x1a7e1f-0x0;var _0x14d22c=_0x4c50[_0x1a7e1f];return _0x14d22c;};'use strict';var OpenchannelMessageEvents=require(_0x04c5('0x0'));var events=['save',_0x04c5('0x1'),'update'];function createListener(_0x399687,_0x1152e1){return function(_0x2a99ac){_0x1152e1[_0x04c5('0x2')](_0x399687,_0x2a99ac);};}function removeListener(_0x42b75b,_0x1d2a1d){return function(){OpenchannelMessageEvents[_0x04c5('0x3')](_0x42b75b,_0x1d2a1d);};}exports[_0x04c5('0x4')]=function(_0x393b3b){for(var _0x4b2aad=0x0,_0x2851a2=events[_0x04c5('0x5')];_0x4b2aad<_0x2851a2;_0x4b2aad++){var _0x2ac9cf=events[_0x4b2aad];var _0x3dc262=createListener(_0x04c5('0x6')+_0x2ac9cf,_0x393b3b);OpenchannelMessageEvents['on'](_0x2ac9cf,_0x3dc262);}};