Built motion from commit 47436d59.|2.6.7
[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 _0xb660=['register','length','./voiceQueue.events','save','update','removeListener'];(function(_0x14a0a0,_0x45d0cf){var _0x56b651=function(_0x1fae09){while(--_0x1fae09){_0x14a0a0['push'](_0x14a0a0['shift']());}};_0x56b651(++_0x45d0cf);}(_0xb660,0x18e));var _0x0b66=function(_0x144e7f,_0x1a068c){_0x144e7f=_0x144e7f-0x0;var _0x1516e6=_0xb660[_0x144e7f];return _0x1516e6;};'use strict';var VoiceQueueEvents=require(_0x0b66('0x0'));var events=[_0x0b66('0x1'),'remove',_0x0b66('0x2')];function createListener(_0x2846bf,_0x38e20b){return function(_0x2b4e4f){_0x38e20b['emit'](_0x2846bf,_0x2b4e4f);};}function removeListener(_0x7c3f8e,_0x5ef1b3){return function(){VoiceQueueEvents[_0x0b66('0x3')](_0x7c3f8e,_0x5ef1b3);};}exports[_0x0b66('0x4')]=function(_0x3ebcb5){for(var _0x5e7adc=0x0,_0x19a15c=events[_0x0b66('0x5')];_0x5e7adc<_0x19a15c;_0x5e7adc++){var _0x30eef1=events[_0x5e7adc];var _0x3b0fe8=createListener('voiceQueue:'+_0x30eef1,_0x3ebcb5);VoiceQueueEvents['on'](_0x30eef1,_0x3b0fe8);}};