Built motion from commit (unavailable).|2.5.0
[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 _0xc41a=['emit','removeListener','length','voiceExtension:','./voiceExtension.events','remove','update'];(function(_0x2c9eae,_0x2cac87){var _0x35a380=function(_0x1ac2ed){while(--_0x1ac2ed){_0x2c9eae['push'](_0x2c9eae['shift']());}};_0x35a380(++_0x2cac87);}(_0xc41a,0x1a1));var _0xac41=function(_0x5f1438,_0x44e52d){_0x5f1438=_0x5f1438-0x0;var _0x408fbc=_0xc41a[_0x5f1438];return _0x408fbc;};'use strict';var VoiceExtensionEvents=require(_0xac41('0x0'));var events=['save',_0xac41('0x1'),_0xac41('0x2')];function createListener(_0x4af568,_0x291a78){return function(_0x3fa0e7){_0x291a78[_0xac41('0x3')](_0x4af568,_0x3fa0e7);};}function removeListener(_0x394869,_0x304a1f){return function(){VoiceExtensionEvents[_0xac41('0x4')](_0x394869,_0x304a1f);};}exports['register']=function(_0x1ce31f){for(var _0x4afa9b=0x0,_0x533a26=events[_0xac41('0x5')];_0x4afa9b<_0x533a26;_0x4afa9b++){var _0x2eccc5=events[_0x4afa9b];var _0xc60b96=createListener(_0xac41('0x6')+_0x2eccc5,_0x1ce31f);VoiceExtensionEvents['on'](_0x2eccc5,_0xc60b96);}};