Built motion from commit (unavailable).|2.5.10
[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 _0xf234=['update','emit','removeListener','register','save','remove'];(function(_0x2aca6a,_0x139191){var _0x37b14a=function(_0x1430db){while(--_0x1430db){_0x2aca6a['push'](_0x2aca6a['shift']());}};_0x37b14a(++_0x139191);}(_0xf234,0x1ba));var _0x4f23=function(_0x42ffe8,_0xa4bbc5){_0x42ffe8=_0x42ffe8-0x0;var _0x8e4e18=_0xf234[_0x42ffe8];return _0x8e4e18;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x4f23('0x0'),_0x4f23('0x1'),_0x4f23('0x2')];function createListener(_0x25cccb,_0x3c9312){return function(_0x4cad52){_0x3c9312[_0x4f23('0x3')](_0x25cccb,_0x4cad52);};}function removeListener(_0x1ad7f2,_0x1da889){return function(){UserVoiceQueueRtEvents[_0x4f23('0x4')](_0x1ad7f2,_0x1da889);};}exports[_0x4f23('0x5')]=function(_0x9db8da){for(var _0x458732=0x0,_0x4e1461=events['length'];_0x458732<_0x4e1461;_0x458732++){var _0x727b12=events[_0x458732];var _0x5be0fe=createListener('userVoiceQueueRt:'+_0x727b12,_0x9db8da);UserVoiceQueueRtEvents['on'](_0x727b12,_0x5be0fe);}};