Built motion from commit (unavailable).|2.5.26
[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 _0x60c9=['remove','update','emit','removeListener','length','voiceQueue:','./voiceQueue.events','save'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x60c9,0x116));var _0x960c=function(_0x20ccc6,_0x5289cb){_0x20ccc6=_0x20ccc6-0x0;var _0x5c3435=_0x60c9[_0x20ccc6];return _0x5c3435;};'use strict';var VoiceQueueEvents=require(_0x960c('0x0'));var events=[_0x960c('0x1'),_0x960c('0x2'),_0x960c('0x3')];function createListener(_0x147af5,_0x198894){return function(_0x394079){_0x198894[_0x960c('0x4')](_0x147af5,_0x394079);};}function removeListener(_0x2af81d,_0x1054d5){return function(){VoiceQueueEvents[_0x960c('0x5')](_0x2af81d,_0x1054d5);};}exports['register']=function(_0x1301c3){for(var _0x58b1f0=0x0,_0x1d0a6e=events[_0x960c('0x6')];_0x58b1f0<_0x1d0a6e;_0x58b1f0++){var _0x400c88=events[_0x58b1f0];var _0x16ceff=createListener(_0x960c('0x7')+_0x400c88,_0x1301c3);VoiceQueueEvents['on'](_0x400c88,_0x16ceff);}};