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 _0xe433=['emit','removeListener','register','openchannelInteraction:','./openchannelInteraction.events','save','remove'];(function(_0x2ff62a,_0x1c2808){var _0x222a2a=function(_0x1ec379){while(--_0x1ec379){_0x2ff62a['push'](_0x2ff62a['shift']());}};_0x222a2a(++_0x1c2808);}(_0xe433,0xc8));var _0x3e43=function(_0x1876e0,_0x20f888){_0x1876e0=_0x1876e0-0x0;var _0x262ddf=_0xe433[_0x1876e0];return _0x262ddf;};'use strict';var OpenchannelInteractionEvents=require(_0x3e43('0x0'));var events=[_0x3e43('0x1'),_0x3e43('0x2'),'update'];function createListener(_0x5e8a90,_0x341c16){return function(_0x326493){_0x341c16[_0x3e43('0x3')](_0x5e8a90,_0x326493);};}function removeListener(_0x45d63c,_0x58a23b){return function(){OpenchannelInteractionEvents[_0x3e43('0x4')](_0x45d63c,_0x58a23b);};}exports[_0x3e43('0x5')]=function(_0xbc918){for(var _0x536664=0x0,_0x3e088c=events['length'];_0x536664<_0x3e088c;_0x536664++){var _0x1b3c1d=events[_0x536664];var _0x496932=createListener(_0x3e43('0x6')+_0x1b3c1d,_0xbc918);OpenchannelInteractionEvents['on'](_0x1b3c1d,_0x496932);}};