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 _0x3f6b=['update','emit','removeListener','register','save','remove'];(function(_0x3f477c,_0x52b7ff){var _0x4c36b3=function(_0x3b47bb){while(--_0x3b47bb){_0x3f477c['push'](_0x3f477c['shift']());}};_0x4c36b3(++_0x52b7ff);}(_0x3f6b,0xf4));var _0xb3f6=function(_0x25c324,_0x1b0a6e){_0x25c324=_0x25c324-0x0;var _0x1a6f16=_0x3f6b[_0x25c324];return _0x1a6f16;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0xb3f6('0x0'),_0xb3f6('0x1'),_0xb3f6('0x2')];function createListener(_0x460798,_0x4eeb79){return function(_0x2e18fd){_0x4eeb79[_0xb3f6('0x3')](_0x460798,_0x2e18fd);};}function removeListener(_0x27189f,_0x53eae3){return function(){OpenchannelInteractionEvents[_0xb3f6('0x4')](_0x27189f,_0x53eae3);};}exports[_0xb3f6('0x5')]=function(_0x251f6f){for(var _0xd6218d=0x0,_0xea331b=events['length'];_0xd6218d<_0xea331b;_0xd6218d++){var _0xd63b07=events[_0xd6218d];var _0x3b24ba=createListener('openchannelInteraction:'+_0xd63b07,_0x251f6f);OpenchannelInteractionEvents['on'](_0xd63b07,_0x3b24ba);}};