Built motion from commit (unavailable).|2.5.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 _0x3222=['remove','update','emit','removeListener','register','./voiceQueue.events','save'];(function(_0x3f553b,_0x49a9c2){var _0x183c4e=function(_0x873b22){while(--_0x873b22){_0x3f553b['push'](_0x3f553b['shift']());}};_0x183c4e(++_0x49a9c2);}(_0x3222,0x101));var _0x2322=function(_0x57528b,_0x556b68){_0x57528b=_0x57528b-0x0;var _0x337234=_0x3222[_0x57528b];return _0x337234;};'use strict';var VoiceQueueEvents=require(_0x2322('0x0'));var events=[_0x2322('0x1'),_0x2322('0x2'),_0x2322('0x3')];function createListener(_0x627030,_0xebfcf7){return function(_0xe5555e){_0xebfcf7[_0x2322('0x4')](_0x627030,_0xe5555e);};}function removeListener(_0x5a12ba,_0x31a5b0){return function(){VoiceQueueEvents[_0x2322('0x5')](_0x5a12ba,_0x31a5b0);};}exports[_0x2322('0x6')]=function(_0x3bd501){for(var _0xf33115=0x0,_0x355205=events['length'];_0xf33115<_0x355205;_0xf33115++){var _0x2698d2=events[_0xf33115];var _0x3646a3=createListener('voiceQueue:'+_0x2698d2,_0x3bd501);VoiceQueueEvents['on'](_0x2698d2,_0x3646a3);}};