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 _0xfb6d=['openchannelInteraction:','./openchannelInteraction.events','save','update','emit','register','length'];(function(_0x5b3c65,_0x792344){var _0x41cbbb=function(_0x351c55){while(--_0x351c55){_0x5b3c65['push'](_0x5b3c65['shift']());}};_0x41cbbb(++_0x792344);}(_0xfb6d,0x1cf));var _0xdfb6=function(_0x117a06,_0x1b94e5){_0x117a06=_0x117a06-0x0;var _0x2d5875=_0xfb6d[_0x117a06];return _0x2d5875;};'use strict';var OpenchannelInteractionEvents=require(_0xdfb6('0x0'));var events=[_0xdfb6('0x1'),'remove',_0xdfb6('0x2')];function createListener(_0x3539a1,_0xadb0){return function(_0x47c818){_0xadb0[_0xdfb6('0x3')](_0x3539a1,_0x47c818);};}function removeListener(_0x19253b,_0x24f988){return function(){OpenchannelInteractionEvents['removeListener'](_0x19253b,_0x24f988);};}exports[_0xdfb6('0x4')]=function(_0xdae1ca){for(var _0x2de0e3=0x0,_0x3c17c7=events[_0xdfb6('0x5')];_0x2de0e3<_0x3c17c7;_0x2de0e3++){var _0x52b277=events[_0x2de0e3];var _0x24e7b9=createListener(_0xdfb6('0x6')+_0x52b277,_0xdae1ca);OpenchannelInteractionEvents['on'](_0x52b277,_0x24e7b9);}};