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 _0x47af=['./openchannelInteraction.events','save','remove','update','emit','length','openchannelInteraction:'];(function(_0x1a65d5,_0x1b06fb){var _0x5862ac=function(_0x3d25f7){while(--_0x3d25f7){_0x1a65d5['push'](_0x1a65d5['shift']());}};_0x5862ac(++_0x1b06fb);}(_0x47af,0xa1));var _0xf47a=function(_0x3b071c,_0x4d0dba){_0x3b071c=_0x3b071c-0x0;var _0x107d23=_0x47af[_0x3b071c];return _0x107d23;};'use strict';var OpenchannelInteractionEvents=require(_0xf47a('0x0'));var events=[_0xf47a('0x1'),_0xf47a('0x2'),_0xf47a('0x3')];function createListener(_0x221b36,_0x4761d4){return function(_0x438c66){_0x4761d4[_0xf47a('0x4')](_0x221b36,_0x438c66);};}function removeListener(_0x1429ea,_0x37752d){return function(){OpenchannelInteractionEvents['removeListener'](_0x1429ea,_0x37752d);};}exports['register']=function(_0x2cbd23){for(var _0x1884f5=0x0,_0xd096c=events[_0xf47a('0x5')];_0x1884f5<_0xd096c;_0x1884f5++){var _0x2941cd=events[_0x1884f5];var _0x3474b6=createListener(_0xf47a('0x6')+_0x2941cd,_0x2cbd23);OpenchannelInteractionEvents['on'](_0x2941cd,_0x3474b6);}};