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 _0x27a2=['register','length','./chatInteraction.events','save','update','removeListener'];(function(_0x485e57,_0x7d437a){var _0x478fbe=function(_0x655266){while(--_0x655266){_0x485e57['push'](_0x485e57['shift']());}};_0x478fbe(++_0x7d437a);}(_0x27a2,0x182));var _0x227a=function(_0x55afd4,_0x247f5f){_0x55afd4=_0x55afd4-0x0;var _0x127a91=_0x27a2[_0x55afd4];return _0x127a91;};'use strict';var ChatInteractionEvents=require(_0x227a('0x0'));var events=[_0x227a('0x1'),'remove',_0x227a('0x2')];function createListener(_0xdf8b84,_0x2f9c23){return function(_0xefeb27){_0x2f9c23['emit'](_0xdf8b84,_0xefeb27);};}function removeListener(_0x32c69d,_0x1bc5d2){return function(){ChatInteractionEvents[_0x227a('0x3')](_0x32c69d,_0x1bc5d2);};}exports[_0x227a('0x4')]=function(_0x144acd){for(var _0x23a39a=0x0,_0x9297ef=events[_0x227a('0x5')];_0x23a39a<_0x9297ef;_0x23a39a++){var _0x4d5f6b=events[_0x23a39a];var _0x360f9e=createListener('chatInteraction:'+_0x4d5f6b,_0x144acd);ChatInteractionEvents['on'](_0x4d5f6b,_0x360f9e);}};