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 _0xf1d3=['./chatInternalMessage.events','save','update','emit','register','chatInternalMessage:'];(function(_0x22152c,_0x1d9db9){var _0x5d57ef=function(_0x4d4720){while(--_0x4d4720){_0x22152c['push'](_0x22152c['shift']());}};_0x5d57ef(++_0x1d9db9);}(_0xf1d3,0x14a));var _0x3f1d=function(_0x2e76af,_0x2283d9){_0x2e76af=_0x2e76af-0x0;var _0xcd80c4=_0xf1d3[_0x2e76af];return _0xcd80c4;};'use strict';var ChatInternalMessageEvents=require(_0x3f1d('0x0'));var events=[_0x3f1d('0x1'),'remove',_0x3f1d('0x2')];function createListener(_0x23e117,_0x3e4359){return function(_0x4f6c36){_0x3e4359[_0x3f1d('0x3')](_0x23e117,_0x4f6c36);};}function removeListener(_0x54e69c,_0x24e89c){return function(){ChatInternalMessageEvents['removeListener'](_0x54e69c,_0x24e89c);};}exports[_0x3f1d('0x4')]=function(_0x4f4c53){for(var _0x30b8e9=0x0,_0x2c75ab=events['length'];_0x30b8e9<_0x2c75ab;_0x30b8e9++){var _0x32fd73=events[_0x30b8e9];var _0x493cea=createListener(_0x3f1d('0x5')+_0x32fd73,_0x4f4c53);ChatInternalMessageEvents['on'](_0x32fd73,_0x493cea);}};