Built motion from commit (unavailable).|2.5.14
[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 _0x066f=['emit','register','voiceQueue:','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x066f,0x137));var _0xf066=function(_0x267c5b,_0x14feac){_0x267c5b=_0x267c5b-0x0;var _0x51c435=_0x066f[_0x267c5b];return _0x51c435;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=['save',_0xf066('0x0'),'update'];function createListener(_0x6d373d,_0xe103e8){return function(_0x54185c){_0xe103e8[_0xf066('0x1')](_0x6d373d,_0x54185c);};}function removeListener(_0x1acae8,_0x29334e){return function(){VoiceQueueEvents['removeListener'](_0x1acae8,_0x29334e);};}exports[_0xf066('0x2')]=function(_0x2ddbef){for(var _0x14757b=0x0,_0x499fc2=events['length'];_0x14757b<_0x499fc2;_0x14757b++){var _0x5b1d62=events[_0x14757b];var _0x2e5134=createListener(_0xf066('0x3')+_0x5b1d62,_0x2ddbef);VoiceQueueEvents['on'](_0x5b1d62,_0x2e5134);}};