Built motion from commit (unavailable).|2.5.6
[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 _0x559f=['register','length','./voiceExtension.events','save','remove','update','emit'];(function(_0x2be8c2,_0x14a4b5){var _0x97f531=function(_0xcee58d){while(--_0xcee58d){_0x2be8c2['push'](_0x2be8c2['shift']());}};_0x97f531(++_0x14a4b5);}(_0x559f,0x1de));var _0xf559=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x559f[_0x3dd15e];return _0x231fd0;};'use strict';var VoiceExtensionEvents=require(_0xf559('0x0'));var events=[_0xf559('0x1'),_0xf559('0x2'),_0xf559('0x3')];function createListener(_0x57a618,_0x14eaad){return function(_0x2a8f62){_0x14eaad[_0xf559('0x4')](_0x57a618,_0x2a8f62);};}function removeListener(_0x3bedda,_0x20f9a0){return function(){VoiceExtensionEvents['removeListener'](_0x3bedda,_0x20f9a0);};}exports[_0xf559('0x5')]=function(_0x41a997){for(var _0x295b21=0x0,_0x19ebae=events[_0xf559('0x6')];_0x295b21<_0x19ebae;_0x295b21++){var _0x57a4d9=events[_0x295b21];var _0x35a3bc=createListener('voiceExtension:'+_0x57a4d9,_0x41a997);VoiceExtensionEvents['on'](_0x57a4d9,_0x35a3bc);}};