Built motion from commit (unavailable).|2.5.6
[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 _0x8f71=['voiceQueue:','save','remove','register','length'];(function(_0x8eedb5,_0x33ed83){var _0xbdbbeb=function(_0x312470){while(--_0x312470){_0x8eedb5['push'](_0x8eedb5['shift']());}};_0xbdbbeb(++_0x33ed83);}(_0x8f71,0x1e6));var _0x18f7=function(_0x2fea15,_0x30e9d5){_0x2fea15=_0x2fea15-0x0;var _0x5d84f9=_0x8f71[_0x2fea15];return _0x5d84f9;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x18f7('0x0'),_0x18f7('0x1'),'update'];function createListener(_0x10edde,_0x4f01e6){return function(_0x3e6312){_0x4f01e6['emit'](_0x10edde,_0x3e6312);};}function removeListener(_0x5d961b,_0x2eda16){return function(){VoiceQueueEvents['removeListener'](_0x5d961b,_0x2eda16);};}exports[_0x18f7('0x2')]=function(_0xec71c9){for(var _0x2587d3=0x0,_0xf2cd36=events[_0x18f7('0x3')];_0x2587d3<_0xf2cd36;_0x2587d3++){var _0xbb8cf7=events[_0x2587d3];var _0x52ad55=createListener(_0x18f7('0x4')+_0xbb8cf7,_0xec71c9);VoiceQueueEvents['on'](_0xbb8cf7,_0x52ad55);}};