Built motion from commit ddca4d0d.|2.5.47
[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 _0xd837=['voiceQueue:','./voiceQueue.events','remove','emit','removeListener','register'];(function(_0x560f56,_0x3c8bb5){var _0x1e9c96=function(_0xafe4ee){while(--_0xafe4ee){_0x560f56['push'](_0x560f56['shift']());}};_0x1e9c96(++_0x3c8bb5);}(_0xd837,0x1f3));var _0x7d83=function(_0x147497,_0x43e433){_0x147497=_0x147497-0x0;var _0x35f45=_0xd837[_0x147497];return _0x35f45;};'use strict';var VoiceQueueEvents=require(_0x7d83('0x0'));var events=['save',_0x7d83('0x1'),'update'];function createListener(_0x4da1e2,_0xcd4ac8){return function(_0x4a6bd3){_0xcd4ac8[_0x7d83('0x2')](_0x4da1e2,_0x4a6bd3);};}function removeListener(_0x17afa7,_0x2804cc){return function(){VoiceQueueEvents[_0x7d83('0x3')](_0x17afa7,_0x2804cc);};}exports[_0x7d83('0x4')]=function(_0x3b7287){for(var _0x1f9d69=0x0,_0x1b5585=events['length'];_0x1f9d69<_0x1b5585;_0x1f9d69++){var _0xcda417=events[_0x1f9d69];var _0x58fd28=createListener(_0x7d83('0x5')+_0xcda417,_0x3b7287);VoiceQueueEvents['on'](_0xcda417,_0x58fd28);}};