Built motion from commit 9d1906d1.|2.5.40
[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 _0xddc1=['./voiceQueue.events','save','remove','update','emit','removeListener'];(function(_0x2dadb9,_0x42cfe6){var _0x2f0097=function(_0x21163f){while(--_0x21163f){_0x2dadb9['push'](_0x2dadb9['shift']());}};_0x2f0097(++_0x42cfe6);}(_0xddc1,0x10e));var _0x1ddc=function(_0x2e70e9,_0xa62fbc){_0x2e70e9=_0x2e70e9-0x0;var _0x2686ad=_0xddc1[_0x2e70e9];return _0x2686ad;};'use strict';var VoiceQueueEvents=require(_0x1ddc('0x0'));var events=[_0x1ddc('0x1'),_0x1ddc('0x2'),_0x1ddc('0x3')];function createListener(_0x59dece,_0x5c9f9a){return function(_0x58a624){_0x5c9f9a[_0x1ddc('0x4')](_0x59dece,_0x58a624);};}function removeListener(_0x129bf4,_0x1b6e84){return function(){VoiceQueueEvents[_0x1ddc('0x5')](_0x129bf4,_0x1b6e84);};}exports['register']=function(_0x21392d){for(var _0x311062=0x0,_0x34843e=events['length'];_0x311062<_0x34843e;_0x311062++){var _0x5682cd=events[_0x311062];var _0x266ee7=createListener('voiceQueue:'+_0x5682cd,_0x21392d);VoiceQueueEvents['on'](_0x5682cd,_0x266ee7);}};