Built motion from commit 97153652.|2.6.26
[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 _0x6d08=['register','voiceQueue:','./voiceQueue.events','save','remove','update','removeListener'];(function(_0xe89b42,_0x2ccbd6){var _0x5e605b=function(_0xffc3fb){while(--_0xffc3fb){_0xe89b42['push'](_0xe89b42['shift']());}};_0x5e605b(++_0x2ccbd6);}(_0x6d08,0xfe));var _0x86d0=function(_0x3a2e01,_0x2d806d){_0x3a2e01=_0x3a2e01-0x0;var _0x11b58b=_0x6d08[_0x3a2e01];return _0x11b58b;};'use strict';var VoiceQueueEvents=require(_0x86d0('0x0'));var events=[_0x86d0('0x1'),_0x86d0('0x2'),_0x86d0('0x3')];function createListener(_0x40b7ab,_0x455a1b){return function(_0x44ff6f){_0x455a1b['emit'](_0x40b7ab,_0x44ff6f);};}function removeListener(_0x15a1f5,_0x4a4fc9){return function(){VoiceQueueEvents[_0x86d0('0x4')](_0x15a1f5,_0x4a4fc9);};}exports[_0x86d0('0x5')]=function(_0x3b6280){for(var _0x274f99=0x0,_0x378d2e=events['length'];_0x274f99<_0x378d2e;_0x274f99++){var _0x426fad=events[_0x274f99];var _0x45716c=createListener(_0x86d0('0x6')+_0x426fad,_0x3b6280);VoiceQueueEvents['on'](_0x426fad,_0x45716c);}};