Built motion from commit (unavailable).|2.5.29
[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 _0x8d11=['remove','removeListener','userVoiceQueueRt:','save'];(function(_0x5248af,_0x250e5c){var _0x167dda=function(_0x228c17){while(--_0x228c17){_0x5248af['push'](_0x5248af['shift']());}};_0x167dda(++_0x250e5c);}(_0x8d11,0x12b));var _0x18d1=function(_0x307086,_0x3bfe4e){_0x307086=_0x307086-0x0;var _0x699043=_0x8d11[_0x307086];return _0x699043;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x18d1('0x0'),_0x18d1('0x1'),'update'];function createListener(_0x4c0faf,_0x383e25){return function(_0x2525c2){_0x383e25['emit'](_0x4c0faf,_0x2525c2);};}function removeListener(_0x240db7,_0x20a070){return function(){UserVoiceQueueRtEvents[_0x18d1('0x2')](_0x240db7,_0x20a070);};}exports['register']=function(_0x495ad0){for(var _0x4c7440=0x0,_0x2f57d5=events['length'];_0x4c7440<_0x2f57d5;_0x4c7440++){var _0x183f90=events[_0x4c7440];var _0x4ac6c2=createListener(_0x18d1('0x3')+_0x183f90,_0x495ad0);UserVoiceQueueRtEvents['on'](_0x183f90,_0x4ac6c2);}};