Built motion from commit (unavailable).|2.5.4
[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 _0x4b92=['voiceExtension:','./voiceExtension.events','save','remove','update','register','length'];(function(_0x4b2863,_0x494899){var _0x567d67=function(_0x751f03){while(--_0x751f03){_0x4b2863['push'](_0x4b2863['shift']());}};_0x567d67(++_0x494899);}(_0x4b92,0x190));var _0x24b9=function(_0x5783f4,_0x4a9e0a){_0x5783f4=_0x5783f4-0x0;var _0x28e380=_0x4b92[_0x5783f4];return _0x28e380;};'use strict';var VoiceExtensionEvents=require(_0x24b9('0x0'));var events=[_0x24b9('0x1'),_0x24b9('0x2'),_0x24b9('0x3')];function createListener(_0x7afc94,_0x2154cf){return function(_0x190084){_0x2154cf['emit'](_0x7afc94,_0x190084);};}function removeListener(_0x58ec55,_0x3152c3){return function(){VoiceExtensionEvents['removeListener'](_0x58ec55,_0x3152c3);};}exports[_0x24b9('0x4')]=function(_0xcfb232){for(var _0x542f09=0x0,_0x178944=events[_0x24b9('0x5')];_0x542f09<_0x178944;_0x542f09++){var _0x421571=events[_0x542f09];var _0x5d6867=createListener(_0x24b9('0x6')+_0x421571,_0xcfb232);VoiceExtensionEvents['on'](_0x421571,_0x5d6867);}};