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 _0xe18c=['update','emit','length','chatInteraction:','./chatInteraction.events','save'];(function(_0x3f8d6b,_0x4fe81e){var _0x2fe910=function(_0x4e6611){while(--_0x4e6611){_0x3f8d6b['push'](_0x3f8d6b['shift']());}};_0x2fe910(++_0x4fe81e);}(_0xe18c,0x178));var _0xce18=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe18c[_0x3dd15e];return _0x231fd0;};'use strict';var ChatInteractionEvents=require(_0xce18('0x0'));var events=[_0xce18('0x1'),'remove',_0xce18('0x2')];function createListener(_0x3ea3cd,_0x5f24d4){return function(_0x3fc1b6){_0x5f24d4[_0xce18('0x3')](_0x3ea3cd,_0x3fc1b6);};}function removeListener(_0x211a9e,_0x4ec30d){return function(){ChatInteractionEvents['removeListener'](_0x211a9e,_0x4ec30d);};}exports['register']=function(_0x40cbbe){for(var _0x444180=0x0,_0xb09964=events[_0xce18('0x4')];_0x444180<_0xb09964;_0x444180++){var _0x38d2c6=events[_0x444180];var _0x9e9d64=createListener(_0xce18('0x5')+_0x38d2c6,_0x40cbbe);ChatInteractionEvents['on'](_0x38d2c6,_0x9e9d64);}};