Built motion from commit (unavailable).|2.5.7
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.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 _0x998c=['emit','removeListener','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save','remove'];(function(_0x2f77b3,_0xf6a89d){var _0x5a3daf=function(_0x3df094){while(--_0x3df094){_0x2f77b3['push'](_0x2f77b3['shift']());}};_0x5a3daf(++_0xf6a89d);}(_0x998c,0x6d));var _0xc998=function(_0x55969b,_0x1ebe62){_0x55969b=_0x55969b-0x0;var _0x3d7fc1=_0x998c[_0x55969b];return _0x3d7fc1;};'use strict';var UserVoiceQueueRtEvents=require(_0xc998('0x0'));var events=[_0xc998('0x1'),_0xc998('0x2'),'update'];function createListener(_0x115aca,_0x1d0a5c){return function(_0x5db776){_0x1d0a5c[_0xc998('0x3')](_0x115aca,_0x5db776);};}function removeListener(_0x47a412,_0xc6c074){return function(){UserVoiceQueueRtEvents[_0xc998('0x4')](_0x47a412,_0xc6c074);};}exports[_0xc998('0x5')]=function(_0x3a88c1){for(var _0x4c18ae=0x0,_0x2a55cf=events[_0xc998('0x6')];_0x4c18ae<_0x2a55cf;_0x4c18ae++){var _0x528ce9=events[_0x4c18ae];var _0x51b595=createListener(_0xc998('0x7')+_0x528ce9,_0x3a88c1);UserVoiceQueueRtEvents['on'](_0x528ce9,_0x51b595);}};