ec2fb1c66fc7049691c047d68e79c03bcc3274e6
[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 _0x05f0=['./voiceQueue.events','save','remove','update','emit','removeListener','register','voiceQueue:'];(function(_0x31a98e,_0x19b04a){var _0x3098e6=function(_0x522356){while(--_0x522356){_0x31a98e['push'](_0x31a98e['shift']());}};_0x3098e6(++_0x19b04a);}(_0x05f0,0x170));var _0x005f=function(_0x430459,_0x58519c){_0x430459=_0x430459-0x0;var _0x3a2439=_0x05f0[_0x430459];return _0x3a2439;};'use strict';var VoiceQueueEvents=require(_0x005f('0x0'));var events=[_0x005f('0x1'),_0x005f('0x2'),_0x005f('0x3')];function createListener(_0x57690b,_0x3c44c6){return function(_0x4572da){_0x3c44c6[_0x005f('0x4')](_0x57690b,_0x4572da);};}function removeListener(_0x3be0f4,_0x250232){return function(){VoiceQueueEvents[_0x005f('0x5')](_0x3be0f4,_0x250232);};}exports[_0x005f('0x6')]=function(_0x12f43a){for(var _0x197ff0=0x0,_0x462caa=events['length'];_0x197ff0<_0x462caa;_0x197ff0++){var _0x1a52c7=events[_0x197ff0];var _0x34271d=createListener(_0x005f('0x7')+_0x1a52c7,_0x12f43a);VoiceQueueEvents['on'](_0x1a52c7,_0x34271d);}};