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 _0x17ba=['register','length','chatQueue:','./chatQueue.events','save','update','emit','removeListener'];(function(_0x437031,_0x52be7f){var _0x552a3c=function(_0x4e42f8){while(--_0x4e42f8){_0x437031['push'](_0x437031['shift']());}};_0x552a3c(++_0x52be7f);}(_0x17ba,0xab));var _0xa17b=function(_0x2b98cb,_0x42358f){_0x2b98cb=_0x2b98cb-0x0;var _0x5abe19=_0x17ba[_0x2b98cb];return _0x5abe19;};'use strict';var ChatQueueEvents=require(_0xa17b('0x0'));var events=[_0xa17b('0x1'),'remove',_0xa17b('0x2')];function createListener(_0x4563da,_0x2806ac){return function(_0x3c60e5){_0x2806ac[_0xa17b('0x3')](_0x4563da,_0x3c60e5);};}function removeListener(_0x38c13c,_0x11d7b7){return function(){ChatQueueEvents[_0xa17b('0x4')](_0x38c13c,_0x11d7b7);};}exports[_0xa17b('0x5')]=function(_0x3cced2){for(var _0xf72ed4=0x0,_0x2e3d43=events[_0xa17b('0x6')];_0xf72ed4<_0x2e3d43;_0xf72ed4++){var _0x57f9cd=events[_0xf72ed4];var _0x2ca4d3=createListener(_0xa17b('0x7')+_0x57f9cd,_0x3cced2);ChatQueueEvents['on'](_0x57f9cd,_0x2ca4d3);}};