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 _0x7eaa=['update','emit','removeListener','length','./voiceQueue.events'];(function(_0x44e6eb,_0x3d6aad){var _0x4a8912=function(_0x2626b3){while(--_0x2626b3){_0x44e6eb['push'](_0x44e6eb['shift']());}};_0x4a8912(++_0x3d6aad);}(_0x7eaa,0x86));var _0xa7ea=function(_0x3fbba1,_0x138fa4){_0x3fbba1=_0x3fbba1-0x0;var _0x5c75ac=_0x7eaa[_0x3fbba1];return _0x5c75ac;};'use strict';var VoiceQueueEvents=require(_0xa7ea('0x0'));var events=['save','remove',_0xa7ea('0x1')];function createListener(_0x566a5b,_0xa4cf48){return function(_0x3d6965){_0xa4cf48[_0xa7ea('0x2')](_0x566a5b,_0x3d6965);};}function removeListener(_0x400494,_0x332711){return function(){VoiceQueueEvents[_0xa7ea('0x3')](_0x400494,_0x332711);};}exports['register']=function(_0x9766d6){for(var _0x1597c3=0x0,_0x51af0f=events[_0xa7ea('0x4')];_0x1597c3<_0x51af0f;_0x1597c3++){var _0x54435a=events[_0x1597c3];var _0x42cd65=createListener('voiceQueue:'+_0x54435a,_0x9766d6);VoiceQueueEvents['on'](_0x54435a,_0x42cd65);}};