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 _0x4fa3=['length','chatWebsite:','save','remove','update','emit','register'];(function(_0x35eec0,_0x1cfd7a){var _0x1ad2b0=function(_0x1604a4){while(--_0x1604a4){_0x35eec0['push'](_0x35eec0['shift']());}};_0x1ad2b0(++_0x1cfd7a);}(_0x4fa3,0x198));var _0x34fa=function(_0x171285,_0x51a294){_0x171285=_0x171285-0x0;var _0x458e6b=_0x4fa3[_0x171285];return _0x458e6b;};'use strict';var ChatWebsiteEvents=require('./chatWebsite.events');var events=[_0x34fa('0x0'),_0x34fa('0x1'),_0x34fa('0x2')];function createListener(_0x20c7f9,_0x70cbb0){return function(_0x2eaa85){_0x70cbb0[_0x34fa('0x3')](_0x20c7f9,_0x2eaa85);};}function removeListener(_0x3de420,_0xe1aaf6){return function(){ChatWebsiteEvents['removeListener'](_0x3de420,_0xe1aaf6);};}exports[_0x34fa('0x4')]=function(_0x95bce4){for(var _0x8c4b6b=0x0,_0x5bb544=events[_0x34fa('0x5')];_0x8c4b6b<_0x5bb544;_0x8c4b6b++){var _0xe06fb0=events[_0x8c4b6b];var _0x573d0d=createListener(_0x34fa('0x6')+_0xe06fb0,_0x95bce4);ChatWebsiteEvents['on'](_0xe06fb0,_0x573d0d);}};