Built motion from commit (unavailable).|2.3.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 _0x0d33=['remove','update','emit','register','voiceExtension:','./voiceExtension.events','save'];(function(_0x567d5f,_0x370ded){var _0x2bd089=function(_0x31342a){while(--_0x31342a){_0x567d5f['push'](_0x567d5f['shift']());}};_0x2bd089(++_0x370ded);}(_0x0d33,0x147));var _0x30d3=function(_0x4f25f5,_0x191e39){_0x4f25f5=_0x4f25f5-0x0;var _0x5e64d5=_0x0d33[_0x4f25f5];return _0x5e64d5;};'use strict';var VoiceExtensionEvents=require(_0x30d3('0x0'));var events=[_0x30d3('0x1'),_0x30d3('0x2'),_0x30d3('0x3')];function createListener(_0xb4dee3,_0x3eb06b){return function(_0x3d3130){_0x3eb06b[_0x30d3('0x4')](_0xb4dee3,_0x3d3130);};}function removeListener(_0x3e04ec,_0x295fc0){return function(){VoiceExtensionEvents['removeListener'](_0x3e04ec,_0x295fc0);};}exports[_0x30d3('0x5')]=function(_0x468636){for(var _0x4a8d89=0x0,_0x3c7983=events['length'];_0x4a8d89<_0x3c7983;_0x4a8d89++){var _0x27933e=events[_0x4a8d89];var _0x1bbe67=createListener(_0x30d3('0x6')+_0x27933e,_0x468636);VoiceExtensionEvents['on'](_0x27933e,_0x1bbe67);}};