Built motion from commit (unavailable).|2.4.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 _0xcd89=['update','emit','removeListener','register','voiceQueue:','save','remove'];(function(_0x37b7b6,_0x165a5c){var _0x10c4c3=function(_0x16d71e){while(--_0x16d71e){_0x37b7b6['push'](_0x37b7b6['shift']());}};_0x10c4c3(++_0x165a5c);}(_0xcd89,0x67));var _0x9cd8=function(_0x559eb5,_0x121843){_0x559eb5=_0x559eb5-0x0;var _0x3e12ff=_0xcd89[_0x559eb5];return _0x3e12ff;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x9cd8('0x0'),_0x9cd8('0x1'),_0x9cd8('0x2')];function createListener(_0x5979c0,_0x2b510c){return function(_0x3de308){_0x2b510c[_0x9cd8('0x3')](_0x5979c0,_0x3de308);};}function removeListener(_0x4dac43,_0x2b0512){return function(){VoiceQueueEvents[_0x9cd8('0x4')](_0x4dac43,_0x2b0512);};}exports[_0x9cd8('0x5')]=function(_0x599052){for(var _0xbb4637=0x0,_0x1198a5=events['length'];_0xbb4637<_0x1198a5;_0xbb4637++){var _0x40c3b1=events[_0xbb4637];var _0x33d8c1=createListener(_0x9cd8('0x6')+_0x40c3b1,_0x599052);VoiceQueueEvents['on'](_0x40c3b1,_0x33d8c1);}};