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 _0x4a42=['./chatWebsite.events','save','remove','update','emit','removeListener','register','length'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4a42,0x158));var _0x24a4=function(_0x12f82c,_0x41d8e1){_0x12f82c=_0x12f82c-0x0;var _0x272cb5=_0x4a42[_0x12f82c];return _0x272cb5;};'use strict';var ChatWebsiteEvents=require(_0x24a4('0x0'));var events=[_0x24a4('0x1'),_0x24a4('0x2'),_0x24a4('0x3')];function createListener(_0x573fc8,_0x4da2fe){return function(_0x108807){_0x4da2fe[_0x24a4('0x4')](_0x573fc8,_0x108807);};}function removeListener(_0x14b343,_0x143658){return function(){ChatWebsiteEvents[_0x24a4('0x5')](_0x14b343,_0x143658);};}exports[_0x24a4('0x6')]=function(_0x22c4c2){for(var _0x55f8cb=0x0,_0x1e2876=events[_0x24a4('0x7')];_0x55f8cb<_0x1e2876;_0x55f8cb++){var _0x1b04a1=events[_0x55f8cb];var _0x4e53e5=createListener('chatWebsite:'+_0x1b04a1,_0x22c4c2);ChatWebsiteEvents['on'](_0x1b04a1,_0x4e53e5);}};