Built motion from commit (unavailable).|2.5.4
[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 _0xbb05=['emit','removeListener','length','voiceQueue:','save','remove','update'];(function(_0x260859,_0x3cfcff){var _0x4b77f8=function(_0x2e48f8){while(--_0x2e48f8){_0x260859['push'](_0x260859['shift']());}};_0x4b77f8(++_0x3cfcff);}(_0xbb05,0xa5));var _0x5bb0=function(_0xd593fa,_0x14c3e4){_0xd593fa=_0xd593fa-0x0;var _0x26b92d=_0xbb05[_0xd593fa];return _0x26b92d;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x5bb0('0x0'),_0x5bb0('0x1'),_0x5bb0('0x2')];function createListener(_0x503095,_0x3dd931){return function(_0x30ba15){_0x3dd931[_0x5bb0('0x3')](_0x503095,_0x30ba15);};}function removeListener(_0x15a968,_0x369aac){return function(){VoiceQueueEvents[_0x5bb0('0x4')](_0x15a968,_0x369aac);};}exports['register']=function(_0x4c9c9d){for(var _0x18b345=0x0,_0x5ab813=events[_0x5bb0('0x5')];_0x18b345<_0x5ab813;_0x18b345++){var _0x5af534=events[_0x18b345];var _0x21941c=createListener(_0x5bb0('0x6')+_0x5af534,_0x4c9c9d);VoiceQueueEvents['on'](_0x5af534,_0x21941c);}};