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 _0x4d46=['removeListener','register','length','chatInteraction:','save','update'];(function(_0xb40a8f,_0x2a907e){var _0x5e1908=function(_0xa91458){while(--_0xa91458){_0xb40a8f['push'](_0xb40a8f['shift']());}};_0x5e1908(++_0x2a907e);}(_0x4d46,0x6a));var _0x64d4=function(_0x3fce4e,_0x18e429){_0x3fce4e=_0x3fce4e-0x0;var _0x393360=_0x4d46[_0x3fce4e];return _0x393360;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x64d4('0x0'),'remove',_0x64d4('0x1')];function createListener(_0x286a85,_0x2299f6){return function(_0xee53bc){_0x2299f6['emit'](_0x286a85,_0xee53bc);};}function removeListener(_0x3f6019,_0x5411a9){return function(){ChatInteractionEvents[_0x64d4('0x2')](_0x3f6019,_0x5411a9);};}exports[_0x64d4('0x3')]=function(_0x4aad2f){for(var _0x23abb3=0x0,_0x16ff28=events[_0x64d4('0x4')];_0x23abb3<_0x16ff28;_0x23abb3++){var _0x2d9dad=events[_0x23abb3];var _0x23d1f5=createListener(_0x64d4('0x5')+_0x2d9dad,_0x4aad2f);ChatInteractionEvents['on'](_0x2d9dad,_0x23d1f5);}};