d91a2acd9ccc9a5cc838fdd4d33cddcf2bcb12bd
[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 _0x4b43=['update','emit','register','length','voiceQueue:','./voiceQueue.events','save','remove'];(function(_0x3d8698,_0x129083){var _0x5c237d=function(_0x265804){while(--_0x265804){_0x3d8698['push'](_0x3d8698['shift']());}};_0x5c237d(++_0x129083);}(_0x4b43,0x13d));var _0x34b4=function(_0x5c6653,_0x427b1a){_0x5c6653=_0x5c6653-0x0;var _0xc4f00b=_0x4b43[_0x5c6653];return _0xc4f00b;};'use strict';var VoiceQueueEvents=require(_0x34b4('0x0'));var events=[_0x34b4('0x1'),_0x34b4('0x2'),_0x34b4('0x3')];function createListener(_0xaeee13,_0x38013f){return function(_0x5d82c1){_0x38013f[_0x34b4('0x4')](_0xaeee13,_0x5d82c1);};}function removeListener(_0x143e50,_0x2e7c33){return function(){VoiceQueueEvents['removeListener'](_0x143e50,_0x2e7c33);};}exports[_0x34b4('0x5')]=function(_0x5bdff7){for(var _0x578619=0x0,_0x24d87c=events[_0x34b4('0x6')];_0x578619<_0x24d87c;_0x578619++){var _0x5e0c8c=events[_0x578619];var _0x1a80c9=createListener(_0x34b4('0x7')+_0x5e0c8c,_0x5bdff7);VoiceQueueEvents['on'](_0x5e0c8c,_0x1a80c9);}};