Built motion from commit (unavailable).|2.4.5
[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 _0x1441=['removeListener','length','./voiceQueue.events','save','update','emit'];(function(_0xe66e22,_0x170d41){var _0x488b21=function(_0x2d5a40){while(--_0x2d5a40){_0xe66e22['push'](_0xe66e22['shift']());}};_0x488b21(++_0x170d41);}(_0x1441,0xbc));var _0x1144=function(_0x2aaec6,_0x291a6f){_0x2aaec6=_0x2aaec6-0x0;var _0x179e5b=_0x1441[_0x2aaec6];return _0x179e5b;};'use strict';var VoiceQueueEvents=require(_0x1144('0x0'));var events=[_0x1144('0x1'),'remove',_0x1144('0x2')];function createListener(_0x50564f,_0x306e88){return function(_0x320ab1){_0x306e88[_0x1144('0x3')](_0x50564f,_0x320ab1);};}function removeListener(_0x22f0cf,_0x232141){return function(){VoiceQueueEvents[_0x1144('0x4')](_0x22f0cf,_0x232141);};}exports['register']=function(_0x4007cf){for(var _0x5d2e88=0x0,_0xb6a650=events[_0x1144('0x5')];_0x5d2e88<_0xb6a650;_0x5d2e88++){var _0x137729=events[_0x5d2e88];var _0x2ac697=createListener('voiceQueue:'+_0x137729,_0x4007cf);VoiceQueueEvents['on'](_0x137729,_0x2ac697);}};