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 _0xea79=['emit','register','length','voiceQueue:','./voiceQueue.events','save'];(function(_0x5a0d27,_0x56e8b6){var _0xc97e12=function(_0x412892){while(--_0x412892){_0x5a0d27['push'](_0x5a0d27['shift']());}};_0xc97e12(++_0x56e8b6);}(_0xea79,0x1c6));var _0x9ea7=function(_0x227bfa,_0x51bedc){_0x227bfa=_0x227bfa-0x0;var _0x331aba=_0xea79[_0x227bfa];return _0x331aba;};'use strict';var VoiceQueueEvents=require(_0x9ea7('0x0'));var events=[_0x9ea7('0x1'),'remove','update'];function createListener(_0x586f60,_0x3b3999){return function(_0x4071d4){_0x3b3999[_0x9ea7('0x2')](_0x586f60,_0x4071d4);};}function removeListener(_0x1527b5,_0x1a7d2e){return function(){VoiceQueueEvents['removeListener'](_0x1527b5,_0x1a7d2e);};}exports[_0x9ea7('0x3')]=function(_0x579c82){for(var _0xec944d=0x0,_0x49e77c=events[_0x9ea7('0x4')];_0xec944d<_0x49e77c;_0xec944d++){var _0x3cd10d=events[_0xec944d];var _0x1ddb96=createListener(_0x9ea7('0x5')+_0x3cd10d,_0x579c82);VoiceQueueEvents['on'](_0x3cd10d,_0x1ddb96);}};