89aa5a7a67fe9143cfecff3e21146c291a82a7a9
[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 _0x91fb=['update','emit','removeListener','register','length','voiceQueue:','./voiceQueue.events','save','remove'];(function(_0x15b07a,_0x4b0108){var _0x245811=function(_0x43c4f7){while(--_0x43c4f7){_0x15b07a['push'](_0x15b07a['shift']());}};_0x245811(++_0x4b0108);}(_0x91fb,0xde));var _0xb91f=function(_0x5d8631,_0x44944b){_0x5d8631=_0x5d8631-0x0;var _0x34c15e=_0x91fb[_0x5d8631];return _0x34c15e;};'use strict';var VoiceQueueEvents=require(_0xb91f('0x0'));var events=[_0xb91f('0x1'),_0xb91f('0x2'),_0xb91f('0x3')];function createListener(_0x21ce89,_0x12256b){return function(_0x2bcdb3){_0x12256b[_0xb91f('0x4')](_0x21ce89,_0x2bcdb3);};}function removeListener(_0x469d31,_0x42f1fa){return function(){VoiceQueueEvents[_0xb91f('0x5')](_0x469d31,_0x42f1fa);};}exports[_0xb91f('0x6')]=function(_0x41c02d){for(var _0xb56050=0x0,_0x1956db=events[_0xb91f('0x7')];_0xb56050<_0x1956db;_0xb56050++){var _0x3fa80f=events[_0xb56050];var _0x2e9c0b=createListener(_0xb91f('0x8')+_0x3fa80f,_0x41c02d);VoiceQueueEvents['on'](_0x3fa80f,_0x2e9c0b);}};