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 _0x4c52=['./chatInternalMessage.events','save','remove','update','emit','removeListener','length'];(function(_0x3d0e15,_0xdb46ae){var _0x4723bc=function(_0x5a02d4){while(--_0x5a02d4){_0x3d0e15['push'](_0x3d0e15['shift']());}};_0x4723bc(++_0xdb46ae);}(_0x4c52,0x70));var _0x24c5=function(_0x368e09,_0x2c1517){_0x368e09=_0x368e09-0x0;var _0x14b7df=_0x4c52[_0x368e09];return _0x14b7df;};'use strict';var ChatInternalMessageEvents=require(_0x24c5('0x0'));var events=[_0x24c5('0x1'),_0x24c5('0x2'),_0x24c5('0x3')];function createListener(_0x1bed5e,_0x4ac560){return function(_0x291b2d){_0x4ac560[_0x24c5('0x4')](_0x1bed5e,_0x291b2d);};}function removeListener(_0x505902,_0x1b67aa){return function(){ChatInternalMessageEvents[_0x24c5('0x5')](_0x505902,_0x1b67aa);};}exports['register']=function(_0xba20f){for(var _0x5ab514=0x0,_0x328a11=events[_0x24c5('0x6')];_0x5ab514<_0x328a11;_0x5ab514++){var _0x1cbee0=events[_0x5ab514];var _0x462d55=createListener('chatInternalMessage:'+_0x1cbee0,_0xba20f);ChatInternalMessageEvents['on'](_0x1cbee0,_0x462d55);}};