Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / voiceExtension / voiceExtension.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 _0x7f37=['register','voiceExtension:','./voiceExtension.events','save','remove','emit','removeListener'];(function(_0xfc4467,_0x15fce9){var _0x3e3ce3=function(_0x1c192c){while(--_0x1c192c){_0xfc4467['push'](_0xfc4467['shift']());}};_0x3e3ce3(++_0x15fce9);}(_0x7f37,0x19f));var _0x77f3=function(_0x53ccf2,_0x13cb67){_0x53ccf2=_0x53ccf2-0x0;var _0x5a2964=_0x7f37[_0x53ccf2];return _0x5a2964;};'use strict';var VoiceExtensionEvents=require(_0x77f3('0x0'));var events=[_0x77f3('0x1'),_0x77f3('0x2'),'update'];function createListener(_0x2f4ac6,_0x24be82){return function(_0x322bc9){_0x24be82[_0x77f3('0x3')](_0x2f4ac6,_0x322bc9);};}function removeListener(_0x3f8d1d,_0x398e9f){return function(){VoiceExtensionEvents[_0x77f3('0x4')](_0x3f8d1d,_0x398e9f);};}exports[_0x77f3('0x5')]=function(_0x1ae6c3){for(var _0x3734bb=0x0,_0x46a050=events['length'];_0x3734bb<_0x46a050;_0x3734bb++){var _0x31ae62=events[_0x3734bb];var _0x4aa005=createListener(_0x77f3('0x6')+_0x31ae62,_0x1ae6c3);VoiceExtensionEvents['on'](_0x31ae62,_0x4aa005);}};