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 _0x6d1a=['./voiceQueue.events','save','update','register'];(function(_0x531301,_0x3509f2){var _0x46e668=function(_0x272a6c){while(--_0x272a6c){_0x531301['push'](_0x531301['shift']());}};_0x46e668(++_0x3509f2);}(_0x6d1a,0x1ec));var _0xa6d1=function(_0x47b1a8,_0x40c662){_0x47b1a8=_0x47b1a8-0x0;var _0x1258c1=_0x6d1a[_0x47b1a8];return _0x1258c1;};'use strict';var VoiceQueueEvents=require(_0xa6d1('0x0'));var events=[_0xa6d1('0x1'),'remove',_0xa6d1('0x2')];function createListener(_0x54527b,_0x3501b0){return function(_0x5948b8){_0x3501b0['emit'](_0x54527b,_0x5948b8);};}function removeListener(_0x118fdd,_0x2a347d){return function(){VoiceQueueEvents['removeListener'](_0x118fdd,_0x2a347d);};}exports[_0xa6d1('0x3')]=function(_0x5d01f2){for(var _0x3ffc41=0x0,_0x5be59a=events['length'];_0x3ffc41<_0x5be59a;_0x3ffc41++){var _0x3f0c84=events[_0x3ffc41];var _0x1eb996=createListener('voiceQueue:'+_0x3f0c84,_0x5d01f2);VoiceQueueEvents['on'](_0x3f0c84,_0x1eb996);}};