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 _0x4ab2=['./openchannelInteraction.events','save','remove','update','removeListener','register','openchannelInteraction:'];(function(_0x3278b5,_0x278364){var _0x4d8119=function(_0x5cfe5d){while(--_0x5cfe5d){_0x3278b5['push'](_0x3278b5['shift']());}};_0x4d8119(++_0x278364);}(_0x4ab2,0x1a4));var _0x24ab=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0x4ab2[_0x19950b];return _0x3c6b41;};'use strict';var OpenchannelInteractionEvents=require(_0x24ab('0x0'));var events=[_0x24ab('0x1'),_0x24ab('0x2'),_0x24ab('0x3')];function createListener(_0x19cef2,_0x2ef2d5){return function(_0x5e162b){_0x2ef2d5['emit'](_0x19cef2,_0x5e162b);};}function removeListener(_0x567b8d,_0x2f32e9){return function(){OpenchannelInteractionEvents[_0x24ab('0x4')](_0x567b8d,_0x2f32e9);};}exports[_0x24ab('0x5')]=function(_0x189a42){for(var _0x3fb05f=0x0,_0x1987a1=events['length'];_0x3fb05f<_0x1987a1;_0x3fb05f++){var _0x23fe45=events[_0x3fb05f];var _0x548dde=createListener(_0x24ab('0x6')+_0x23fe45,_0x189a42);OpenchannelInteractionEvents['on'](_0x23fe45,_0x548dde);}};