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 _0xbec1=['./openchannelInteraction.events','remove','update','removeListener','register'];(function(_0x1e8a11,_0x5a0f8f){var _0x3e4bf5=function(_0x265fbb){while(--_0x265fbb){_0x1e8a11['push'](_0x1e8a11['shift']());}};_0x3e4bf5(++_0x5a0f8f);}(_0xbec1,0x195));var _0x1bec=function(_0x574c0e,_0x56740d){_0x574c0e=_0x574c0e-0x0;var _0x57e02a=_0xbec1[_0x574c0e];return _0x57e02a;};'use strict';var OpenchannelInteractionEvents=require(_0x1bec('0x0'));var events=['save',_0x1bec('0x1'),_0x1bec('0x2')];function createListener(_0x641008,_0x40dfc1){return function(_0x292937){_0x40dfc1['emit'](_0x641008,_0x292937);};}function removeListener(_0x1ab025,_0x533c8e){return function(){OpenchannelInteractionEvents[_0x1bec('0x3')](_0x1ab025,_0x533c8e);};}exports[_0x1bec('0x4')]=function(_0x530397){for(var _0x16352d=0x0,_0x480002=events['length'];_0x16352d<_0x480002;_0x16352d++){var _0x5d5874=events[_0x16352d];var _0x31e2a4=createListener('openchannelInteraction:'+_0x5d5874,_0x530397);OpenchannelInteractionEvents['on'](_0x5d5874,_0x31e2a4);}};