Built motion from commit (unavailable).|2.4.18
[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 _0x8ae0=['removeListener','./voiceQueue.events','save','remove','update','emit'];(function(_0x1443d5,_0x21f839){var _0x3f8e34=function(_0x5e1263){while(--_0x5e1263){_0x1443d5['push'](_0x1443d5['shift']());}};_0x3f8e34(++_0x21f839);}(_0x8ae0,0x115));var _0x08ae=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0x8ae0[_0x160c73];return _0xd9302;};'use strict';var VoiceQueueEvents=require(_0x08ae('0x0'));var events=[_0x08ae('0x1'),_0x08ae('0x2'),_0x08ae('0x3')];function createListener(_0x10e675,_0x4aa6cd){return function(_0xc46c4e){_0x4aa6cd[_0x08ae('0x4')](_0x10e675,_0xc46c4e);};}function removeListener(_0x3ab802,_0x3bf6fb){return function(){VoiceQueueEvents[_0x08ae('0x5')](_0x3ab802,_0x3bf6fb);};}exports['register']=function(_0x3dc64c){for(var _0x103973=0x0,_0x14ece5=events['length'];_0x103973<_0x14ece5;_0x103973++){var _0x16b61f=events[_0x103973];var _0x5880de=createListener('voiceQueue:'+_0x16b61f,_0x3dc64c);VoiceQueueEvents['on'](_0x16b61f,_0x5880de);}};