Built motion from commit (unavailable).|2.2.5
[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 _0xdee6=['length','./voiceQueue.events','save','remove','update','emit','register'];(function(_0x24f854,_0x1cee29){var _0xf7e3ad=function(_0x48998c){while(--_0x48998c){_0x24f854['push'](_0x24f854['shift']());}};_0xf7e3ad(++_0x1cee29);}(_0xdee6,0x1a5));var _0x6dee=function(_0x127e25,_0x17f934){_0x127e25=_0x127e25-0x0;var _0x4963f8=_0xdee6[_0x127e25];return _0x4963f8;};'use strict';var VoiceQueueEvents=require(_0x6dee('0x0'));var events=[_0x6dee('0x1'),_0x6dee('0x2'),_0x6dee('0x3')];function createListener(_0x366dd5,_0x10309c){return function(_0x5358a9){_0x10309c[_0x6dee('0x4')](_0x366dd5,_0x5358a9);};}function removeListener(_0x4a4ab2,_0x3661c2){return function(){VoiceQueueEvents['removeListener'](_0x4a4ab2,_0x3661c2);};}exports[_0x6dee('0x5')]=function(_0x3f5194){for(var _0x2815ef=0x0,_0x161829=events[_0x6dee('0x6')];_0x2815ef<_0x161829;_0x2815ef++){var _0x14f8ef=events[_0x2815ef];var _0x47c83a=createListener('voiceQueue:'+_0x14f8ef,_0x3f5194);VoiceQueueEvents['on'](_0x14f8ef,_0x47c83a);}};