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 _0x7f0c=['chatInternalMessage:','./chatInternalMessage.events','save','remove','update','emit','length'];(function(_0x546d0c,_0x5809ad){var _0x3147ca=function(_0x382358){while(--_0x382358){_0x546d0c['push'](_0x546d0c['shift']());}};_0x3147ca(++_0x5809ad);}(_0x7f0c,0x143));var _0xc7f0=function(_0x5404f6,_0x5900a7){_0x5404f6=_0x5404f6-0x0;var _0x13230b=_0x7f0c[_0x5404f6];return _0x13230b;};'use strict';var ChatInternalMessageEvents=require(_0xc7f0('0x0'));var events=[_0xc7f0('0x1'),_0xc7f0('0x2'),_0xc7f0('0x3')];function createListener(_0xd4106a,_0x3e1e18){return function(_0x26b7cf){_0x3e1e18[_0xc7f0('0x4')](_0xd4106a,_0x26b7cf);};}function removeListener(_0x20642f,_0x26288b){return function(){ChatInternalMessageEvents['removeListener'](_0x20642f,_0x26288b);};}exports['register']=function(_0x2369d8){for(var _0x352d19=0x0,_0x404af2=events[_0xc7f0('0x5')];_0x352d19<_0x404af2;_0x352d19++){var _0x3726a8=events[_0x352d19];var _0x42e85d=createListener(_0xc7f0('0x6')+_0x3726a8,_0x2369d8);ChatInternalMessageEvents['on'](_0x3726a8,_0x42e85d);}};