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 _0x54a5=['removeListener','register','voiceQueue:','./voiceQueue.events','save','remove','update','emit'];(function(_0x11005e,_0x20c3d2){var _0x29338f=function(_0x3384e9){while(--_0x3384e9){_0x11005e['push'](_0x11005e['shift']());}};_0x29338f(++_0x20c3d2);}(_0x54a5,0x8b));var _0x554a=function(_0x24ac55,_0x4f1363){_0x24ac55=_0x24ac55-0x0;var _0x235a72=_0x54a5[_0x24ac55];return _0x235a72;};'use strict';var VoiceQueueEvents=require(_0x554a('0x0'));var events=[_0x554a('0x1'),_0x554a('0x2'),_0x554a('0x3')];function createListener(_0x524ef8,_0x17bdd4){return function(_0x3d838){_0x17bdd4[_0x554a('0x4')](_0x524ef8,_0x3d838);};}function removeListener(_0x125f53,_0x5171f8){return function(){VoiceQueueEvents[_0x554a('0x5')](_0x125f53,_0x5171f8);};}exports[_0x554a('0x6')]=function(_0x1c20ff){for(var _0x3ebcb6=0x0,_0x54c4e4=events['length'];_0x3ebcb6<_0x54c4e4;_0x3ebcb6++){var _0x59a31f=events[_0x3ebcb6];var _0x210c94=createListener(_0x554a('0x7')+_0x59a31f,_0x1c20ff);VoiceQueueEvents['on'](_0x59a31f,_0x210c94);}};