48e4445d00ae1b4bac6f3e320e670160f65450d2
[motion2.git] / server / api / voiceQueue / voiceQueue.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe4cf=['save','update','emit','removeListener','register','length','voiceQueue:','./voiceQueue.events'];(function(_0x5b45fb,_0x4a8523){var _0x43c96e=function(_0x3a63ae){while(--_0x3a63ae){_0x5b45fb['push'](_0x5b45fb['shift']());}};_0x43c96e(++_0x4a8523);}(_0xe4cf,0x18f));var _0xfe4c=function(_0xc6ea98,_0x1f0fe7){_0xc6ea98=_0xc6ea98-0x0;var _0x154999=_0xe4cf[_0xc6ea98];return _0x154999;};'use strict';var VoiceQueueEvents=require(_0xfe4c('0x0'));var events=[_0xfe4c('0x1'),'remove',_0xfe4c('0x2')];function createListener(_0x4bd020,_0x2ec5b3){return function(_0x143bd6){_0x2ec5b3[_0xfe4c('0x3')](_0x4bd020,_0x143bd6);};}function removeListener(_0x2fd7f9,_0x5ad604){return function(){VoiceQueueEvents[_0xfe4c('0x4')](_0x2fd7f9,_0x5ad604);};}exports[_0xfe4c('0x5')]=function(_0x1f533d){for(var _0x3d5d80=0x0,_0x40b315=events[_0xfe4c('0x6')];_0x3d5d80<_0x40b315;_0x3d5d80++){var _0x31f0c5=events[_0x3d5d80];var _0x2994cd=createListener(_0xfe4c('0x7')+_0x31f0c5,_0x1f533d);VoiceQueueEvents['on'](_0x31f0c5,_0x2994cd);}};