Built motion from commit (unavailable).|2.5.17
[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 _0xaa51=['register','voiceQueue:','./voiceQueue.events','save','update','emit'];(function(_0x571ae3,_0x56fcf8){var _0x2cba10=function(_0xf660d4){while(--_0xf660d4){_0x571ae3['push'](_0x571ae3['shift']());}};_0x2cba10(++_0x56fcf8);}(_0xaa51,0xf8));var _0x1aa5=function(_0x13fd4c,_0x4cd6a){_0x13fd4c=_0x13fd4c-0x0;var _0x4f594f=_0xaa51[_0x13fd4c];return _0x4f594f;};'use strict';var VoiceQueueEvents=require(_0x1aa5('0x0'));var events=[_0x1aa5('0x1'),'remove',_0x1aa5('0x2')];function createListener(_0xec9bbe,_0x17b846){return function(_0x4e966f){_0x17b846[_0x1aa5('0x3')](_0xec9bbe,_0x4e966f);};}function removeListener(_0x9aeb27,_0x326ec8){return function(){VoiceQueueEvents['removeListener'](_0x9aeb27,_0x326ec8);};}exports[_0x1aa5('0x4')]=function(_0x23ea50){for(var _0x146e2b=0x0,_0x62703e=events['length'];_0x146e2b<_0x62703e;_0x146e2b++){var _0x158740=events[_0x146e2b];var _0x380abd=createListener(_0x1aa5('0x5')+_0x158740,_0x23ea50);VoiceQueueEvents['on'](_0x158740,_0x380abd);}};