Built motion from commit d5e4af8c.|2.6.23
[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 _0x3a96=['remove','emit','removeListener','length','voiceQueue:','./voiceQueue.events','save'];(function(_0x3e94f0,_0x382afe){var _0x5ddbb2=function(_0x45f8a4){while(--_0x45f8a4){_0x3e94f0['push'](_0x3e94f0['shift']());}};_0x5ddbb2(++_0x382afe);}(_0x3a96,0x8a));var _0x63a9=function(_0x360c42,_0x427772){_0x360c42=_0x360c42-0x0;var _0x23b630=_0x3a96[_0x360c42];return _0x23b630;};'use strict';var VoiceQueueEvents=require(_0x63a9('0x0'));var events=[_0x63a9('0x1'),_0x63a9('0x2'),'update'];function createListener(_0x137d16,_0x37eddf){return function(_0x37b8a9){_0x37eddf[_0x63a9('0x3')](_0x137d16,_0x37b8a9);};}function removeListener(_0x2390e4,_0x21f2c8){return function(){VoiceQueueEvents[_0x63a9('0x4')](_0x2390e4,_0x21f2c8);};}exports['register']=function(_0x11e857){for(var _0x463b95=0x0,_0x304419=events[_0x63a9('0x5')];_0x463b95<_0x304419;_0x463b95++){var _0x3e2cc3=events[_0x463b95];var _0x56b0ab=createListener(_0x63a9('0x6')+_0x3e2cc3,_0x11e857);VoiceQueueEvents['on'](_0x3e2cc3,_0x56b0ab);}};