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 _0xca3d=['register','length','openchannelInteraction:','./openchannelInteraction.events','save','remove','update','removeListener'];(function(_0x11297a,_0x28efd5){var _0x5dc288=function(_0x5a2188){while(--_0x5a2188){_0x11297a['push'](_0x11297a['shift']());}};_0x5dc288(++_0x28efd5);}(_0xca3d,0x19b));var _0xdca3=function(_0x1c190c,_0x48125d){_0x1c190c=_0x1c190c-0x0;var _0x4fda82=_0xca3d[_0x1c190c];return _0x4fda82;};'use strict';var OpenchannelInteractionEvents=require(_0xdca3('0x0'));var events=[_0xdca3('0x1'),_0xdca3('0x2'),_0xdca3('0x3')];function createListener(_0x2ac9e8,_0x7f325c){return function(_0x2df652){_0x7f325c['emit'](_0x2ac9e8,_0x2df652);};}function removeListener(_0xd29551,_0x28c521){return function(){OpenchannelInteractionEvents[_0xdca3('0x4')](_0xd29551,_0x28c521);};}exports[_0xdca3('0x5')]=function(_0x40a2a5){for(var _0x44c146=0x0,_0x164c5c=events[_0xdca3('0x6')];_0x44c146<_0x164c5c;_0x44c146++){var _0x6d5712=events[_0x44c146];var _0x4cd51e=createListener(_0xdca3('0x7')+_0x6d5712,_0x40a2a5);OpenchannelInteractionEvents['on'](_0x6d5712,_0x4cd51e);}};