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 _0xef22=['length','voiceQueue:','./voiceQueue.events','save','update','emit'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xef22,0xd4));var _0x2ef2=function(_0x4ae625,_0xf396d0){_0x4ae625=_0x4ae625-0x0;var _0x31accf=_0xef22[_0x4ae625];return _0x31accf;};'use strict';var VoiceQueueEvents=require(_0x2ef2('0x0'));var events=[_0x2ef2('0x1'),'remove',_0x2ef2('0x2')];function createListener(_0x468929,_0xcafe09){return function(_0x3c0202){_0xcafe09[_0x2ef2('0x3')](_0x468929,_0x3c0202);};}function removeListener(_0x107b4e,_0x56f0b7){return function(){VoiceQueueEvents['removeListener'](_0x107b4e,_0x56f0b7);};}exports['register']=function(_0x293197){for(var _0x4062b9=0x0,_0x41b265=events[_0x2ef2('0x4')];_0x4062b9<_0x41b265;_0x4062b9++){var _0x43badf=events[_0x4062b9];var _0x4c37be=createListener(_0x2ef2('0x5')+_0x43badf,_0x293197);VoiceQueueEvents['on'](_0x43badf,_0x4c37be);}};