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 _0x0227=['length','chatInteraction:','save','remove','emit'];(function(_0xf6e75d,_0xc70967){var _0x27514d=function(_0xc2c6dd){while(--_0xc2c6dd){_0xf6e75d['push'](_0xf6e75d['shift']());}};_0x27514d(++_0xc70967);}(_0x0227,0x16a));var _0x7022=function(_0x304c43,_0x128e22){_0x304c43=_0x304c43-0x0;var _0x48296e=_0x0227[_0x304c43];return _0x48296e;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x7022('0x0'),_0x7022('0x1'),'update'];function createListener(_0x12d55d,_0x18b14a){return function(_0xca46ed){_0x18b14a[_0x7022('0x2')](_0x12d55d,_0xca46ed);};}function removeListener(_0x4263d1,_0x4d05e9){return function(){ChatInteractionEvents['removeListener'](_0x4263d1,_0x4d05e9);};}exports['register']=function(_0x503d2a){for(var _0x1cfc3a=0x0,_0x2776d8=events[_0x7022('0x3')];_0x1cfc3a<_0x2776d8;_0x1cfc3a++){var _0x171832=events[_0x1cfc3a];var _0x4997bb=createListener(_0x7022('0x4')+_0x171832,_0x503d2a);ChatInteractionEvents['on'](_0x171832,_0x4997bb);}};