Built motion from commit (unavailable).|2.5.22
[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 _0x0148=['voiceExtension:','./voiceExtension.events','remove','update','emit','removeListener','length'];(function(_0x972b32,_0x56ea80){var _0x6e8e75=function(_0x488ed9){while(--_0x488ed9){_0x972b32['push'](_0x972b32['shift']());}};_0x6e8e75(++_0x56ea80);}(_0x0148,0xf6));var _0x8014=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x0148[_0x17d9e3];return _0x14192d;};'use strict';var VoiceExtensionEvents=require(_0x8014('0x0'));var events=['save',_0x8014('0x1'),_0x8014('0x2')];function createListener(_0x2d0915,_0x420ac5){return function(_0x3bfd9f){_0x420ac5[_0x8014('0x3')](_0x2d0915,_0x3bfd9f);};}function removeListener(_0x2c928d,_0x3b0236){return function(){VoiceExtensionEvents[_0x8014('0x4')](_0x2c928d,_0x3b0236);};}exports['register']=function(_0x47d1c1){for(var _0x50e161=0x0,_0x3ac29e=events[_0x8014('0x5')];_0x50e161<_0x3ac29e;_0x50e161++){var _0x4bb16d=events[_0x50e161];var _0x53f30b=createListener(_0x8014('0x6')+_0x4bb16d,_0x47d1c1);VoiceExtensionEvents['on'](_0x4bb16d,_0x53f30b);}};