Built motion from commit 85328c08.|2.5.50
[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 _0x2320=['save','remove','update','removeListener','register','length','./voiceQueue.events'];(function(_0x4f9b18,_0x2cb5ca){var _0x29f20c=function(_0x268b3d){while(--_0x268b3d){_0x4f9b18['push'](_0x4f9b18['shift']());}};_0x29f20c(++_0x2cb5ca);}(_0x2320,0x7d));var _0x0232=function(_0x1c3929,_0x2578c6){_0x1c3929=_0x1c3929-0x0;var _0x35a491=_0x2320[_0x1c3929];return _0x35a491;};'use strict';var VoiceQueueEvents=require(_0x0232('0x0'));var events=[_0x0232('0x1'),_0x0232('0x2'),_0x0232('0x3')];function createListener(_0x353d59,_0xcf8f3){return function(_0x373ced){_0xcf8f3['emit'](_0x353d59,_0x373ced);};}function removeListener(_0x32d161,_0x2e0298){return function(){VoiceQueueEvents[_0x0232('0x4')](_0x32d161,_0x2e0298);};}exports[_0x0232('0x5')]=function(_0x40ace3){for(var _0x462e85=0x0,_0x18178c=events[_0x0232('0x6')];_0x462e85<_0x18178c;_0x462e85++){var _0x1af5a1=events[_0x462e85];var _0xd063a=createListener('voiceQueue:'+_0x1af5a1,_0x40ace3);VoiceQueueEvents['on'](_0x1af5a1,_0xd063a);}};