Built motion from commit (unavailable).|2.5.8
[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 _0x1159=['voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener','length'];(function(_0x3b87f4,_0x112243){var _0x63d16e=function(_0x3e7323){while(--_0x3e7323){_0x3b87f4['push'](_0x3b87f4['shift']());}};_0x63d16e(++_0x112243);}(_0x1159,0x119));var _0x9115=function(_0x319001,_0x225d70){_0x319001=_0x319001-0x0;var _0xf315db=_0x1159[_0x319001];return _0xf315db;};'use strict';var VoiceQueueEvents=require(_0x9115('0x0'));var events=[_0x9115('0x1'),_0x9115('0x2'),_0x9115('0x3')];function createListener(_0x45c37a,_0x52bc7d){return function(_0x2ab2ff){_0x52bc7d[_0x9115('0x4')](_0x45c37a,_0x2ab2ff);};}function removeListener(_0x51245f,_0x4d59cf){return function(){VoiceQueueEvents[_0x9115('0x5')](_0x51245f,_0x4d59cf);};}exports['register']=function(_0x2c92d8){for(var _0x1453e3=0x0,_0x125259=events[_0x9115('0x6')];_0x1453e3<_0x125259;_0x1453e3++){var _0x5b85d2=events[_0x1453e3];var _0x2048e5=createListener(_0x9115('0x7')+_0x5b85d2,_0x2c92d8);VoiceQueueEvents['on'](_0x5b85d2,_0x2048e5);}};