Built motion from commit (unavailable).|2.5.1
[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 _0xdceb=['length','voiceQueue:','save','update','emit','removeListener','register'];(function(_0x333683,_0x2e51dc){var _0x570c76=function(_0x2b51a2){while(--_0x2b51a2){_0x333683['push'](_0x333683['shift']());}};_0x570c76(++_0x2e51dc);}(_0xdceb,0x160));var _0xbdce=function(_0x11640f,_0x418b70){_0x11640f=_0x11640f-0x0;var _0x5ce380=_0xdceb[_0x11640f];return _0x5ce380;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0xbdce('0x0'),'remove',_0xbdce('0x1')];function createListener(_0x26eefe,_0x2f6fc1){return function(_0x5e946a){_0x2f6fc1[_0xbdce('0x2')](_0x26eefe,_0x5e946a);};}function removeListener(_0x1ea360,_0x5d5527){return function(){VoiceQueueEvents[_0xbdce('0x3')](_0x1ea360,_0x5d5527);};}exports[_0xbdce('0x4')]=function(_0x140e28){for(var _0x524881=0x0,_0x155cc6=events[_0xbdce('0x5')];_0x524881<_0x155cc6;_0x524881++){var _0x3c7791=events[_0x524881];var _0x2af993=createListener(_0xbdce('0x6')+_0x3c7791,_0x140e28);VoiceQueueEvents['on'](_0x3c7791,_0x2af993);}};