Built motion from commit 753c950e.|2.5.42
[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 _0x7911=['length','voiceQueue:','./voiceQueue.events','save','update','emit','removeListener'];(function(_0x41bcf5,_0x2a0131){var _0x3e93de=function(_0x2a666c){while(--_0x2a666c){_0x41bcf5['push'](_0x41bcf5['shift']());}};_0x3e93de(++_0x2a0131);}(_0x7911,0xf0));var _0x1791=function(_0x5e36d1,_0x471178){_0x5e36d1=_0x5e36d1-0x0;var _0x950b9e=_0x7911[_0x5e36d1];return _0x950b9e;};'use strict';var VoiceQueueEvents=require(_0x1791('0x0'));var events=[_0x1791('0x1'),'remove',_0x1791('0x2')];function createListener(_0x1f6a75,_0x163f5a){return function(_0x3cdcdb){_0x163f5a[_0x1791('0x3')](_0x1f6a75,_0x3cdcdb);};}function removeListener(_0x14aa19,_0x2f16b9){return function(){VoiceQueueEvents[_0x1791('0x4')](_0x14aa19,_0x2f16b9);};}exports['register']=function(_0x30217c){for(var _0x57a8fe=0x0,_0x7e8bf=events[_0x1791('0x5')];_0x57a8fe<_0x7e8bf;_0x57a8fe++){var _0x144b8d=events[_0x57a8fe];var _0x343c78=createListener(_0x1791('0x6')+_0x144b8d,_0x30217c);VoiceQueueEvents['on'](_0x144b8d,_0x343c78);}};