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 _0x838e=['chatWebsite:','save','remove','update','emit','removeListener','register','length'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0x838e,0x149));var _0xe838=function(_0x1b9cdd,_0x43076f){_0x1b9cdd=_0x1b9cdd-0x0;var _0x18cf76=_0x838e[_0x1b9cdd];return _0x18cf76;};'use strict';var ChatWebsiteEvents=require('./chatWebsite.events');var events=[_0xe838('0x0'),_0xe838('0x1'),_0xe838('0x2')];function createListener(_0x25ec42,_0x39ede3){return function(_0x3eb9c2){_0x39ede3[_0xe838('0x3')](_0x25ec42,_0x3eb9c2);};}function removeListener(_0x46e7da,_0x9f51cf){return function(){ChatWebsiteEvents[_0xe838('0x4')](_0x46e7da,_0x9f51cf);};}exports[_0xe838('0x5')]=function(_0xfb4ae0){for(var _0x67f836=0x0,_0x50cafd=events[_0xe838('0x6')];_0x67f836<_0x50cafd;_0x67f836++){var _0x1878ac=events[_0x67f836];var _0x5ab30c=createListener(_0xe838('0x7')+_0x1878ac,_0xfb4ae0);ChatWebsiteEvents['on'](_0x1878ac,_0x5ab30c);}};