f826472483bfb4ad43db49a1d28f9895fc1fc65d
[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 _0xe7e8=['remove','update','removeListener','register','length','save'];(function(_0x5e2124,_0x118c8c){var _0x366dee=function(_0x307a4d){while(--_0x307a4d){_0x5e2124['push'](_0x5e2124['shift']());}};_0x366dee(++_0x118c8c);}(_0xe7e8,0xe3));var _0x8e7e=function(_0x3d4ef1,_0x5a957c){_0x3d4ef1=_0x3d4ef1-0x0;var _0x409423=_0xe7e8[_0x3d4ef1];return _0x409423;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x8e7e('0x0'),_0x8e7e('0x1'),_0x8e7e('0x2')];function createListener(_0x4e5f9b,_0x484e89){return function(_0x41affe){_0x484e89['emit'](_0x4e5f9b,_0x41affe);};}function removeListener(_0x2313de,_0x22edb0){return function(){VoiceQueueEvents[_0x8e7e('0x3')](_0x2313de,_0x22edb0);};}exports[_0x8e7e('0x4')]=function(_0x2ff8db){for(var _0x11183f=0x0,_0x11cdd0=events[_0x8e7e('0x5')];_0x11183f<_0x11cdd0;_0x11183f++){var _0x505978=events[_0x11183f];var _0x2b134f=createListener('voiceQueue:'+_0x505978,_0x2ff8db);VoiceQueueEvents['on'](_0x505978,_0x2b134f);}};