Built motion from commit (unavailable).|2.4.19
[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 _0x0790=['length','voiceQueue:','emit','register'];(function(_0x2d9be6,_0x4b73e2){var _0x3d3977=function(_0x46de09){while(--_0x46de09){_0x2d9be6['push'](_0x2d9be6['shift']());}};_0x3d3977(++_0x4b73e2);}(_0x0790,0xf2));var _0x0079=function(_0x16051a,_0x5e4326){_0x16051a=_0x16051a-0x0;var _0x35d20d=_0x0790[_0x16051a];return _0x35d20d;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=['save','remove','update'];function createListener(_0x417cac,_0x8cc555){return function(_0xb37be0){_0x8cc555[_0x0079('0x0')](_0x417cac,_0xb37be0);};}function removeListener(_0x27d0ca,_0x15b085){return function(){VoiceQueueEvents['removeListener'](_0x27d0ca,_0x15b085);};}exports[_0x0079('0x1')]=function(_0x473d73){for(var _0x20e8f6=0x0,_0x504031=events[_0x0079('0x2')];_0x20e8f6<_0x504031;_0x20e8f6++){var _0x235f01=events[_0x20e8f6];var _0x246e71=createListener(_0x0079('0x3')+_0x235f01,_0x473d73);VoiceQueueEvents['on'](_0x235f01,_0x246e71);}};