Built motion from commit ce03bc3d.|2.5.39
[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 _0xf482=['./voiceQueue.events','save','update','emit','removeListener','length','voiceQueue:'];(function(_0xa17720,_0x20d772){var _0x4c1821=function(_0x31a80c){while(--_0x31a80c){_0xa17720['push'](_0xa17720['shift']());}};_0x4c1821(++_0x20d772);}(_0xf482,0x1b9));var _0x2f48=function(_0x5c43f0,_0x1b7db6){_0x5c43f0=_0x5c43f0-0x0;var _0x3067fa=_0xf482[_0x5c43f0];return _0x3067fa;};'use strict';var VoiceQueueEvents=require(_0x2f48('0x0'));var events=[_0x2f48('0x1'),'remove',_0x2f48('0x2')];function createListener(_0x247965,_0x29ced4){return function(_0x4fa21f){_0x29ced4[_0x2f48('0x3')](_0x247965,_0x4fa21f);};}function removeListener(_0x2c0318,_0x1786c2){return function(){VoiceQueueEvents[_0x2f48('0x4')](_0x2c0318,_0x1786c2);};}exports['register']=function(_0x250bf4){for(var _0x5797c1=0x0,_0x52ccbb=events[_0x2f48('0x5')];_0x5797c1<_0x52ccbb;_0x5797c1++){var _0xd3acc7=events[_0x5797c1];var _0x56c55c=createListener(_0x2f48('0x6')+_0xd3acc7,_0x250bf4);VoiceQueueEvents['on'](_0xd3acc7,_0x56c55c);}};