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 _0x780f=['emit','removeListener','length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update'];(function(_0xec7442,_0x408e65){var _0x478123=function(_0x554f2b){while(--_0x554f2b){_0xec7442['push'](_0xec7442['shift']());}};_0x478123(++_0x408e65);}(_0x780f,0x6c));var _0xf780=function(_0x263f4c,_0x438626){_0x263f4c=_0x263f4c-0x0;var _0x3a78d3=_0x780f[_0x263f4c];return _0x3a78d3;};'use strict';var ChatInternalMessageEvents=require(_0xf780('0x0'));var events=[_0xf780('0x1'),_0xf780('0x2'),_0xf780('0x3')];function createListener(_0xe9686a,_0x4ede54){return function(_0x5a7301){_0x4ede54[_0xf780('0x4')](_0xe9686a,_0x5a7301);};}function removeListener(_0x26ed87,_0x1a22c0){return function(){ChatInternalMessageEvents[_0xf780('0x5')](_0x26ed87,_0x1a22c0);};}exports['register']=function(_0x37b0a2){for(var _0x4b55e7=0x0,_0x1bd856=events[_0xf780('0x6')];_0x4b55e7<_0x1bd856;_0x4b55e7++){var _0x1c3fdc=events[_0x4b55e7];var _0xa12d00=createListener(_0xf780('0x7')+_0x1c3fdc,_0x37b0a2);ChatInternalMessageEvents['on'](_0x1c3fdc,_0xa12d00);}};