Built motion from commit (unavailable).|2.5.18
[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 _0x475d=['register','voiceQueue:','./voiceQueue.events','save','emit','removeListener'];(function(_0x2064e5,_0x4f6fa2){var _0x21a233=function(_0x1b2491){while(--_0x1b2491){_0x2064e5['push'](_0x2064e5['shift']());}};_0x21a233(++_0x4f6fa2);}(_0x475d,0x110));var _0xd475=function(_0xb0b922,_0x183826){_0xb0b922=_0xb0b922-0x0;var _0x5dc41e=_0x475d[_0xb0b922];return _0x5dc41e;};'use strict';var VoiceQueueEvents=require(_0xd475('0x0'));var events=[_0xd475('0x1'),'remove','update'];function createListener(_0x4b4b99,_0x46f59b){return function(_0x4cdb3c){_0x46f59b[_0xd475('0x2')](_0x4b4b99,_0x4cdb3c);};}function removeListener(_0xa68103,_0x52378e){return function(){VoiceQueueEvents[_0xd475('0x3')](_0xa68103,_0x52378e);};}exports[_0xd475('0x4')]=function(_0x43ea29){for(var _0xdbe58e=0x0,_0x16a473=events['length'];_0xdbe58e<_0x16a473;_0xdbe58e++){var _0x532324=events[_0xdbe58e];var _0xb35147=createListener(_0xd475('0x5')+_0x532324,_0x43ea29);VoiceQueueEvents['on'](_0x532324,_0xb35147);}};