Built motion from commit b5413ace.|2.6.9
[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 _0x58af=['voiceQueue:','remove','update','removeListener','register'];(function(_0x186edd,_0x16afae){var _0x447af8=function(_0x280a1b){while(--_0x280a1b){_0x186edd['push'](_0x186edd['shift']());}};_0x447af8(++_0x16afae);}(_0x58af,0x123));var _0xf58a=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x58af[_0x501510];return _0x1e6ee5;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=['save',_0xf58a('0x0'),_0xf58a('0x1')];function createListener(_0x4e1334,_0x188d45){return function(_0x577ecd){_0x188d45['emit'](_0x4e1334,_0x577ecd);};}function removeListener(_0x3794f6,_0x28a610){return function(){VoiceQueueEvents[_0xf58a('0x2')](_0x3794f6,_0x28a610);};}exports[_0xf58a('0x3')]=function(_0x3b5a1d){for(var _0x589d92=0x0,_0x5b71c1=events['length'];_0x589d92<_0x5b71c1;_0x589d92++){var _0x115682=events[_0x589d92];var _0x4ceab8=createListener(_0xf58a('0x4')+_0x115682,_0x3b5a1d);VoiceQueueEvents['on'](_0x115682,_0x4ceab8);}};