bd19f55d8877f6e6513299f5d0f976fada72e173
[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 _0x9a4a=['removeListener','length','voiceQueue:','./voiceQueue.events','save','remove','update'];(function(_0x442f02,_0x47d845){var _0xab6ef1=function(_0x4cad5c){while(--_0x4cad5c){_0x442f02['push'](_0x442f02['shift']());}};_0xab6ef1(++_0x47d845);}(_0x9a4a,0x1c3));var _0xa9a4=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x9a4a[_0x2641f9];return _0x585741;};'use strict';var VoiceQueueEvents=require(_0xa9a4('0x0'));var events=[_0xa9a4('0x1'),_0xa9a4('0x2'),_0xa9a4('0x3')];function createListener(_0x5a2a23,_0x3c8005){return function(_0x9cce27){_0x3c8005['emit'](_0x5a2a23,_0x9cce27);};}function removeListener(_0x5241d1,_0xd4db22){return function(){VoiceQueueEvents[_0xa9a4('0x4')](_0x5241d1,_0xd4db22);};}exports['register']=function(_0x553872){for(var _0x2b122b=0x0,_0x9ea55a=events[_0xa9a4('0x5')];_0x2b122b<_0x9ea55a;_0x2b122b++){var _0x4b418d=events[_0x2b122b];var _0x1bd57c=createListener(_0xa9a4('0x6')+_0x4b418d,_0x553872);VoiceQueueEvents['on'](_0x4b418d,_0x1bd57c);}};