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 _0x9d6c=['update','emit','register','length','openchannelInteraction:','save','remove'];(function(_0x47febb,_0x5b35c0){var _0x4599db=function(_0x4fd759){while(--_0x4fd759){_0x47febb['push'](_0x47febb['shift']());}};_0x4599db(++_0x5b35c0);}(_0x9d6c,0x108));var _0xc9d6=function(_0x19f2d8,_0x3f585d){_0x19f2d8=_0x19f2d8-0x0;var _0x532fdf=_0x9d6c[_0x19f2d8];return _0x532fdf;};'use strict';var OpenchannelInteractionEvents=require('./openchannelInteraction.events');var events=[_0xc9d6('0x0'),_0xc9d6('0x1'),_0xc9d6('0x2')];function createListener(_0x59e5df,_0x15036f){return function(_0x3d7df7){_0x15036f[_0xc9d6('0x3')](_0x59e5df,_0x3d7df7);};}function removeListener(_0xc01ca6,_0x42d8d1){return function(){OpenchannelInteractionEvents['removeListener'](_0xc01ca6,_0x42d8d1);};}exports[_0xc9d6('0x4')]=function(_0x1a87bb){for(var _0x24cdbc=0x0,_0x42c642=events[_0xc9d6('0x5')];_0x24cdbc<_0x42c642;_0x24cdbc++){var _0x4a9463=events[_0x24cdbc];var _0xc50d89=createListener(_0xc9d6('0x6')+_0x4a9463,_0x1a87bb);OpenchannelInteractionEvents['on'](_0x4a9463,_0xc50d89);}};