Built motion from commit 10af8726.|2.6.34
[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 _0x8e78=['./voiceQueue.events','save','remove','removeListener','register','length','voiceQueue:'];(function(_0x403c20,_0x4a7b99){var _0x2b271a=function(_0x106ecb){while(--_0x106ecb){_0x403c20['push'](_0x403c20['shift']());}};_0x2b271a(++_0x4a7b99);}(_0x8e78,0x149));var _0x88e7=function(_0x3a959c,_0x32c343){_0x3a959c=_0x3a959c-0x0;var _0x546200=_0x8e78[_0x3a959c];return _0x546200;};'use strict';var VoiceQueueEvents=require(_0x88e7('0x0'));var events=[_0x88e7('0x1'),_0x88e7('0x2'),'update'];function createListener(_0x10175a,_0x32412d){return function(_0x1bd1e6){_0x32412d['emit'](_0x10175a,_0x1bd1e6);};}function removeListener(_0x151f36,_0x2d7d2b){return function(){VoiceQueueEvents[_0x88e7('0x3')](_0x151f36,_0x2d7d2b);};}exports[_0x88e7('0x4')]=function(_0x4f7b97){for(var _0x581508=0x0,_0xf845e8=events[_0x88e7('0x5')];_0x581508<_0xf845e8;_0x581508++){var _0x2bd50a=events[_0x581508];var _0x4d6c93=createListener(_0x88e7('0x6')+_0x2bd50a,_0x4f7b97);VoiceQueueEvents['on'](_0x2bd50a,_0x4d6c93);}};