Built motion from commit 936e8062.|2.5.33
[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 _0xf707=['voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener','register'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0xf707,0xd1));var _0x7f70=function(_0x5af629,_0x4fc6bf){_0x5af629=_0x5af629-0x0;var _0x103523=_0xf707[_0x5af629];return _0x103523;};'use strict';var VoiceQueueEvents=require(_0x7f70('0x0'));var events=[_0x7f70('0x1'),_0x7f70('0x2'),_0x7f70('0x3')];function createListener(_0x54468d,_0x555093){return function(_0x2ddec6){_0x555093[_0x7f70('0x4')](_0x54468d,_0x2ddec6);};}function removeListener(_0x44bf7b,_0x154163){return function(){VoiceQueueEvents[_0x7f70('0x5')](_0x44bf7b,_0x154163);};}exports[_0x7f70('0x6')]=function(_0x407922){for(var _0x2c154f=0x0,_0x3f02d2=events['length'];_0x2c154f<_0x3f02d2;_0x2c154f++){var _0x15747c=events[_0x2c154f];var _0x10a943=createListener(_0x7f70('0x7')+_0x15747c,_0x407922);VoiceQueueEvents['on'](_0x15747c,_0x10a943);}};