1d040d62226f8ff9f89eed9a1ac91abd1c26bebf
[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 _0x772b=['length','./voiceQueue.events','save','remove','update','emit','register'];(function(_0x4b02a4,_0xfe81a8){var _0x16612c=function(_0x3d1aab){while(--_0x3d1aab){_0x4b02a4['push'](_0x4b02a4['shift']());}};_0x16612c(++_0xfe81a8);}(_0x772b,0x15f));var _0xb772=function(_0x13b783,_0x181db6){_0x13b783=_0x13b783-0x0;var _0x16a7c0=_0x772b[_0x13b783];return _0x16a7c0;};'use strict';var VoiceQueueEvents=require(_0xb772('0x0'));var events=[_0xb772('0x1'),_0xb772('0x2'),_0xb772('0x3')];function createListener(_0x4e38fa,_0x4fccb7){return function(_0x42b095){_0x4fccb7[_0xb772('0x4')](_0x4e38fa,_0x42b095);};}function removeListener(_0x4e81ab,_0x11bea7){return function(){VoiceQueueEvents['removeListener'](_0x4e81ab,_0x11bea7);};}exports[_0xb772('0x5')]=function(_0x11c521){for(var _0x2f7d5a=0x0,_0x4e9ff6=events[_0xb772('0x6')];_0x2f7d5a<_0x4e9ff6;_0x2f7d5a++){var _0x4a4c76=events[_0x2f7d5a];var _0x1d684f=createListener('voiceQueue:'+_0x4a4c76,_0x11c521);VoiceQueueEvents['on'](_0x4a4c76,_0x1d684f);}};