Built motion from commit 6a0adb95.|2.6.31
[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 _0xe421=['register','voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener'];(function(_0x2e8da6,_0x210e41){var _0xe7a644=function(_0x63913d){while(--_0x63913d){_0x2e8da6['push'](_0x2e8da6['shift']());}};_0xe7a644(++_0x210e41);}(_0xe421,0x172));var _0x1e42=function(_0x135d98,_0x31ca8e){_0x135d98=_0x135d98-0x0;var _0x4386f0=_0xe421[_0x135d98];return _0x4386f0;};'use strict';var VoiceQueueEvents=require(_0x1e42('0x0'));var events=[_0x1e42('0x1'),_0x1e42('0x2'),_0x1e42('0x3')];function createListener(_0x15f964,_0x3871ff){return function(_0x38e326){_0x3871ff[_0x1e42('0x4')](_0x15f964,_0x38e326);};}function removeListener(_0x5c4e10,_0x55d574){return function(){VoiceQueueEvents[_0x1e42('0x5')](_0x5c4e10,_0x55d574);};}exports[_0x1e42('0x6')]=function(_0x448e16){for(var _0xd46aec=0x0,_0x19dce9=events['length'];_0xd46aec<_0x19dce9;_0xd46aec++){var _0x199c0a=events[_0xd46aec];var _0x179332=createListener(_0x1e42('0x7')+_0x199c0a,_0x448e16);VoiceQueueEvents['on'](_0x199c0a,_0x179332);}};