Built motion from commit 0c5f406c.|2.6.29
[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 _0x27e9=['./voiceQueue.events','save','remove','emit','register','voiceQueue:'];(function(_0x538929,_0x1fde6e){var _0x17bd8d=function(_0x4087e9){while(--_0x4087e9){_0x538929['push'](_0x538929['shift']());}};_0x17bd8d(++_0x1fde6e);}(_0x27e9,0x10e));var _0x927e=function(_0x5c2389,_0x4e6faa){_0x5c2389=_0x5c2389-0x0;var _0x2e31e4=_0x27e9[_0x5c2389];return _0x2e31e4;};'use strict';var VoiceQueueEvents=require(_0x927e('0x0'));var events=[_0x927e('0x1'),_0x927e('0x2'),'update'];function createListener(_0x316860,_0x182955){return function(_0x599f0b){_0x182955[_0x927e('0x3')](_0x316860,_0x599f0b);};}function removeListener(_0x190bdc,_0x1b6c5d){return function(){VoiceQueueEvents['removeListener'](_0x190bdc,_0x1b6c5d);};}exports[_0x927e('0x4')]=function(_0x5e45e9){for(var _0xa5cd21=0x0,_0x37a6d7=events['length'];_0xa5cd21<_0x37a6d7;_0xa5cd21++){var _0x3ee226=events[_0xa5cd21];var _0x563604=createListener(_0x927e('0x5')+_0x3ee226,_0x5e45e9);VoiceQueueEvents['on'](_0x3ee226,_0x563604);}};