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 _0x2c20=['openchannelInteraction:','./openchannelInteraction.events','remove','update','emit','removeListener','register','length'];(function(_0x3170a7,_0x2e3d21){var _0x49a7b9=function(_0x42b603){while(--_0x42b603){_0x3170a7['push'](_0x3170a7['shift']());}};_0x49a7b9(++_0x2e3d21);}(_0x2c20,0x131));var _0x02c2=function(_0x5bd30e,_0x1cf617){_0x5bd30e=_0x5bd30e-0x0;var _0x52f137=_0x2c20[_0x5bd30e];return _0x52f137;};'use strict';var OpenchannelInteractionEvents=require(_0x02c2('0x0'));var events=['save',_0x02c2('0x1'),_0x02c2('0x2')];function createListener(_0x17c3a4,_0x5a8477){return function(_0x5d856d){_0x5a8477[_0x02c2('0x3')](_0x17c3a4,_0x5d856d);};}function removeListener(_0x49118d,_0x2af09d){return function(){OpenchannelInteractionEvents[_0x02c2('0x4')](_0x49118d,_0x2af09d);};}exports[_0x02c2('0x5')]=function(_0x20ff9a){for(var _0x4a7379=0x0,_0x1b89e1=events[_0x02c2('0x6')];_0x4a7379<_0x1b89e1;_0x4a7379++){var _0x5a587f=events[_0x4a7379];var _0x451bc9=createListener(_0x02c2('0x7')+_0x5a587f,_0x20ff9a);OpenchannelInteractionEvents['on'](_0x5a587f,_0x451bc9);}};