eb231dc24fd63b8e7b7d60197ba8dffd3a2caa3f
[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 _0xb4fe=['save','remove','update','emit','removeListener','voiceQueue:','./voiceQueue.events'];(function(_0x4ed6c7,_0x2e6803){var _0x112d0c=function(_0x188c4f){while(--_0x188c4f){_0x4ed6c7['push'](_0x4ed6c7['shift']());}};_0x112d0c(++_0x2e6803);}(_0xb4fe,0x117));var _0xeb4f=function(_0x31dc2f,_0x7114f){_0x31dc2f=_0x31dc2f-0x0;var _0x3bea17=_0xb4fe[_0x31dc2f];return _0x3bea17;};'use strict';var VoiceQueueEvents=require(_0xeb4f('0x0'));var events=[_0xeb4f('0x1'),_0xeb4f('0x2'),_0xeb4f('0x3')];function createListener(_0x4e8420,_0x1e07da){return function(_0x12912d){_0x1e07da[_0xeb4f('0x4')](_0x4e8420,_0x12912d);};}function removeListener(_0xbd5141,_0x5e98b6){return function(){VoiceQueueEvents[_0xeb4f('0x5')](_0xbd5141,_0x5e98b6);};}exports['register']=function(_0x3360b8){for(var _0x237684=0x0,_0x13bda2=events['length'];_0x237684<_0x13bda2;_0x237684++){var _0xa790ee=events[_0x237684];var _0x12b808=createListener(_0xeb4f('0x6')+_0xa790ee,_0x3360b8);VoiceQueueEvents['on'](_0xa790ee,_0x12b808);}};