Built motion from commit 753c950e.|2.5.42
[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 _0x0d4e=['emit','removeListener','register','length','voiceQueue:','./voiceQueue.events','save','remove'];(function(_0x3cbe1c,_0x4bcabd){var _0x5ee08b=function(_0x5c53e6){while(--_0x5c53e6){_0x3cbe1c['push'](_0x3cbe1c['shift']());}};_0x5ee08b(++_0x4bcabd);}(_0x0d4e,0x1cd));var _0xe0d4=function(_0x138adb,_0x193fee){_0x138adb=_0x138adb-0x0;var _0x1b27f2=_0x0d4e[_0x138adb];return _0x1b27f2;};'use strict';var VoiceQueueEvents=require(_0xe0d4('0x0'));var events=[_0xe0d4('0x1'),_0xe0d4('0x2'),'update'];function createListener(_0x443c02,_0x25fdf3){return function(_0x93e820){_0x25fdf3[_0xe0d4('0x3')](_0x443c02,_0x93e820);};}function removeListener(_0x3d445f,_0x3fba24){return function(){VoiceQueueEvents[_0xe0d4('0x4')](_0x3d445f,_0x3fba24);};}exports[_0xe0d4('0x5')]=function(_0x57a7df){for(var _0x5e8c07=0x0,_0x5cbb9f=events[_0xe0d4('0x6')];_0x5e8c07<_0x5cbb9f;_0x5e8c07++){var _0x42c524=events[_0x5e8c07];var _0x597ba0=createListener(_0xe0d4('0x7')+_0x42c524,_0x57a7df);VoiceQueueEvents['on'](_0x42c524,_0x597ba0);}};