Built motion from commit 10af8726.|2.6.34
[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 _0x6cfd=['update','removeListener','length','userVoiceQueueRt:','remove'];(function(_0x36f5c0,_0x332004){var _0x3cee06=function(_0xa29e5d){while(--_0xa29e5d){_0x36f5c0['push'](_0x36f5c0['shift']());}};_0x3cee06(++_0x332004);}(_0x6cfd,0x1b7));var _0xd6cf=function(_0x200d39,_0x53191d){_0x200d39=_0x200d39-0x0;var _0x54a1e0=_0x6cfd[_0x200d39];return _0x54a1e0;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=['save',_0xd6cf('0x0'),_0xd6cf('0x1')];function createListener(_0x356d97,_0x4295f9){return function(_0xc422){_0x4295f9['emit'](_0x356d97,_0xc422);};}function removeListener(_0x3cbd02,_0x1ede7e){return function(){UserVoiceQueueRtEvents[_0xd6cf('0x2')](_0x3cbd02,_0x1ede7e);};}exports['register']=function(_0x517713){for(var _0x1681fc=0x0,_0x5af324=events[_0xd6cf('0x3')];_0x1681fc<_0x5af324;_0x1681fc++){var _0x516cb9=events[_0x1681fc];var _0x362863=createListener(_0xd6cf('0x4')+_0x516cb9,_0x517713);UserVoiceQueueRtEvents['on'](_0x516cb9,_0x362863);}};