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 _0xacb6=['./openchannelInteraction.events','save','update','emit','removeListener','length','openchannelInteraction:'];(function(_0x40d722,_0x5ab18c){var _0x232ffa=function(_0x2a8ade){while(--_0x2a8ade){_0x40d722['push'](_0x40d722['shift']());}};_0x232ffa(++_0x5ab18c);}(_0xacb6,0xc4));var _0x6acb=function(_0x1e8b71,_0x4f8c09){_0x1e8b71=_0x1e8b71-0x0;var _0x44c567=_0xacb6[_0x1e8b71];return _0x44c567;};'use strict';var OpenchannelInteractionEvents=require(_0x6acb('0x0'));var events=[_0x6acb('0x1'),'remove',_0x6acb('0x2')];function createListener(_0x1169db,_0x23e118){return function(_0x1ac666){_0x23e118[_0x6acb('0x3')](_0x1169db,_0x1ac666);};}function removeListener(_0x5d301f,_0x2c7dfb){return function(){OpenchannelInteractionEvents[_0x6acb('0x4')](_0x5d301f,_0x2c7dfb);};}exports['register']=function(_0x4f0279){for(var _0x5f1c17=0x0,_0x5cf138=events[_0x6acb('0x5')];_0x5f1c17<_0x5cf138;_0x5f1c17++){var _0x44de4c=events[_0x5f1c17];var _0x56ded2=createListener(_0x6acb('0x6')+_0x44de4c,_0x4f0279);OpenchannelInteractionEvents['on'](_0x44de4c,_0x56ded2);}};