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 _0x328e=['emit','removeListener','length','openchannelInteraction:','./openchannelInteraction.events','remove','update'];(function(_0x382606,_0xba33c2){var _0x402a38=function(_0x3a0c49){while(--_0x3a0c49){_0x382606['push'](_0x382606['shift']());}};_0x402a38(++_0xba33c2);}(_0x328e,0x170));var _0xe328=function(_0x3401ab,_0x5e1301){_0x3401ab=_0x3401ab-0x0;var _0x438391=_0x328e[_0x3401ab];return _0x438391;};'use strict';var OpenchannelInteractionEvents=require(_0xe328('0x0'));var events=['save',_0xe328('0x1'),_0xe328('0x2')];function createListener(_0x15d8ba,_0x1e16ce){return function(_0x6a8a80){_0x1e16ce[_0xe328('0x3')](_0x15d8ba,_0x6a8a80);};}function removeListener(_0x567823,_0x59c20a){return function(){OpenchannelInteractionEvents[_0xe328('0x4')](_0x567823,_0x59c20a);};}exports['register']=function(_0xcbf391){for(var _0x39c4f7=0x0,_0x35b620=events[_0xe328('0x5')];_0x39c4f7<_0x35b620;_0x39c4f7++){var _0x5367fc=events[_0x39c4f7];var _0x46d6b5=createListener(_0xe328('0x6')+_0x5367fc,_0xcbf391);OpenchannelInteractionEvents['on'](_0x5367fc,_0x46d6b5);}};