63684c27c69c5f17d3848e71795569e627baa167
[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 _0xc44a=['emit','removeListener','remove','update'];(function(_0x57d736,_0x3b7d56){var _0x36f735=function(_0x1dba63){while(--_0x1dba63){_0x57d736['push'](_0x57d736['shift']());}};_0x36f735(++_0x3b7d56);}(_0xc44a,0xbe));var _0xac44=function(_0xb1cf84,_0x813740){_0xb1cf84=_0xb1cf84-0x0;var _0x4bad2e=_0xc44a[_0xb1cf84];return _0x4bad2e;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=['save',_0xac44('0x0'),_0xac44('0x1')];function createListener(_0x3aad43,_0x3b2090){return function(_0x5d8790){_0x3b2090[_0xac44('0x2')](_0x3aad43,_0x5d8790);};}function removeListener(_0x50f13d,_0x2d821d){return function(){VoiceQueueEvents[_0xac44('0x3')](_0x50f13d,_0x2d821d);};}exports['register']=function(_0x42cbfe){for(var _0x1026cf=0x0,_0x5294c7=events['length'];_0x1026cf<_0x5294c7;_0x1026cf++){var _0x2ed24e=events[_0x1026cf];var _0x453fb6=createListener('voiceQueue:'+_0x2ed24e,_0x42cbfe);VoiceQueueEvents['on'](_0x2ed24e,_0x453fb6);}};