Built motion from commit (unavailable).|2.4.4
[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 _0x4a4e=['emit','removeListener','register','length','voiceQueue:','remove','update'];(function(_0x30ab34,_0x2af26a){var _0x230ac7=function(_0x3ab78f){while(--_0x3ab78f){_0x30ab34['push'](_0x30ab34['shift']());}};_0x230ac7(++_0x2af26a);}(_0x4a4e,0x186));var _0xe4a4=function(_0x39780c,_0x5782c9){_0x39780c=_0x39780c-0x0;var _0x53c19b=_0x4a4e[_0x39780c];return _0x53c19b;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=['save',_0xe4a4('0x0'),_0xe4a4('0x1')];function createListener(_0xf56152,_0xcd73ec){return function(_0x4c00e0){_0xcd73ec[_0xe4a4('0x2')](_0xf56152,_0x4c00e0);};}function removeListener(_0xc39ee5,_0x373e06){return function(){VoiceQueueEvents[_0xe4a4('0x3')](_0xc39ee5,_0x373e06);};}exports[_0xe4a4('0x4')]=function(_0x2f4d7a){for(var _0x5b3781=0x0,_0x3237dc=events[_0xe4a4('0x5')];_0x5b3781<_0x3237dc;_0x5b3781++){var _0x3d99c5=events[_0x5b3781];var _0xc3d54c=createListener(_0xe4a4('0x6')+_0x3d99c5,_0x2f4d7a);VoiceQueueEvents['on'](_0x3d99c5,_0xc3d54c);}};