Built motion from commit (unavailable).|2.5.7
[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 _0x7e36=['remove','update','emit','register','length','voiceQueue:','./voiceQueue.events','save'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x7e36,0x166));var _0x67e3=function(_0x287e09,_0x185de8){_0x287e09=_0x287e09-0x0;var _0x31ddc0=_0x7e36[_0x287e09];return _0x31ddc0;};'use strict';var VoiceQueueEvents=require(_0x67e3('0x0'));var events=[_0x67e3('0x1'),_0x67e3('0x2'),_0x67e3('0x3')];function createListener(_0x1e4641,_0x54baae){return function(_0x947249){_0x54baae[_0x67e3('0x4')](_0x1e4641,_0x947249);};}function removeListener(_0x1e82c1,_0x5796db){return function(){VoiceQueueEvents['removeListener'](_0x1e82c1,_0x5796db);};}exports[_0x67e3('0x5')]=function(_0x582a7d){for(var _0x5c036a=0x0,_0x5000a7=events[_0x67e3('0x6')];_0x5c036a<_0x5000a7;_0x5c036a++){var _0x505362=events[_0x5c036a];var _0x303a9d=createListener(_0x67e3('0x7')+_0x505362,_0x582a7d);VoiceQueueEvents['on'](_0x505362,_0x303a9d);}};