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 _0xa521=['removeListener','chatInternalMessage:','./chatInternalMessage.events','save','update'];(function(_0x3c7dc2,_0x1b5a13){var _0xde31db=function(_0x37482b){while(--_0x37482b){_0x3c7dc2['push'](_0x3c7dc2['shift']());}};_0xde31db(++_0x1b5a13);}(_0xa521,0x133));var _0x1a52=function(_0x37b1c1,_0x56586a){_0x37b1c1=_0x37b1c1-0x0;var _0x47f42=_0xa521[_0x37b1c1];return _0x47f42;};'use strict';var ChatInternalMessageEvents=require(_0x1a52('0x0'));var events=[_0x1a52('0x1'),'remove',_0x1a52('0x2')];function createListener(_0x45aca1,_0x495487){return function(_0x19e006){_0x495487['emit'](_0x45aca1,_0x19e006);};}function removeListener(_0x335923,_0xa2c261){return function(){ChatInternalMessageEvents[_0x1a52('0x3')](_0x335923,_0xa2c261);};}exports['register']=function(_0x562690){for(var _0x25366c=0x0,_0x413f96=events['length'];_0x25366c<_0x413f96;_0x25366c++){var _0x195024=events[_0x25366c];var _0x35accf=createListener(_0x1a52('0x4')+_0x195024,_0x562690);ChatInternalMessageEvents['on'](_0x195024,_0x35accf);}};