Built motion from commit (unavailable).|2.5.24
[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 _0xeb35=['remove','update','removeListener','register','length','./voiceExtension.events','save'];(function(_0xc2bd3a,_0x1b4741){var _0x431032=function(_0x578a40){while(--_0x578a40){_0xc2bd3a['push'](_0xc2bd3a['shift']());}};_0x431032(++_0x1b4741);}(_0xeb35,0x124));var _0x5eb3=function(_0x5d90e9,_0x2da9c1){_0x5d90e9=_0x5d90e9-0x0;var _0x317d58=_0xeb35[_0x5d90e9];return _0x317d58;};'use strict';var VoiceExtensionEvents=require(_0x5eb3('0x0'));var events=[_0x5eb3('0x1'),_0x5eb3('0x2'),_0x5eb3('0x3')];function createListener(_0x122ac3,_0xd0ce42){return function(_0x1fd5ad){_0xd0ce42['emit'](_0x122ac3,_0x1fd5ad);};}function removeListener(_0x3c41fb,_0x710e40){return function(){VoiceExtensionEvents[_0x5eb3('0x4')](_0x3c41fb,_0x710e40);};}exports[_0x5eb3('0x5')]=function(_0x52711b){for(var _0x48b12b=0x0,_0x19aa08=events[_0x5eb3('0x6')];_0x48b12b<_0x19aa08;_0x48b12b++){var _0x4d1dc3=events[_0x48b12b];var _0x261a59=createListener('voiceExtension:'+_0x4d1dc3,_0x52711b);VoiceExtensionEvents['on'](_0x4d1dc3,_0x261a59);}};