Built motion from commit 15aa0e42.|2.6.19
[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 _0x1c5c=['./voiceQueue.events','remove','emit','removeListener','register','length'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x1c5c,0x8a));var _0xc1c5=function(_0x9b6096,_0xb69645){_0x9b6096=_0x9b6096-0x0;var _0xce8ca7=_0x1c5c[_0x9b6096];return _0xce8ca7;};'use strict';var VoiceQueueEvents=require(_0xc1c5('0x0'));var events=['save',_0xc1c5('0x1'),'update'];function createListener(_0x153656,_0x5b03cd){return function(_0x1d0894){_0x5b03cd[_0xc1c5('0x2')](_0x153656,_0x1d0894);};}function removeListener(_0xcbc3e,_0x4ffa99){return function(){VoiceQueueEvents[_0xc1c5('0x3')](_0xcbc3e,_0x4ffa99);};}exports[_0xc1c5('0x4')]=function(_0x3a19f7){for(var _0x449df5=0x0,_0x2dafb2=events[_0xc1c5('0x5')];_0x449df5<_0x2dafb2;_0x449df5++){var _0x40d2d2=events[_0x449df5];var _0x417267=createListener('voiceQueue:'+_0x40d2d2,_0x3a19f7);VoiceQueueEvents['on'](_0x40d2d2,_0x417267);}};