Built motion from commit (unavailable).|2.5.29
[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 _0x392f=['emit','removeListener','register','length','./voiceExtension.events','save','remove'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0x392f,0x12a));var _0xf392=function(_0x45397c,_0x24c4f5){_0x45397c=_0x45397c-0x0;var _0x41c704=_0x392f[_0x45397c];return _0x41c704;};'use strict';var VoiceExtensionEvents=require(_0xf392('0x0'));var events=[_0xf392('0x1'),_0xf392('0x2'),'update'];function createListener(_0x39e119,_0x26b653){return function(_0x887be0){_0x26b653[_0xf392('0x3')](_0x39e119,_0x887be0);};}function removeListener(_0x16eaf4,_0x5c255f){return function(){VoiceExtensionEvents[_0xf392('0x4')](_0x16eaf4,_0x5c255f);};}exports[_0xf392('0x5')]=function(_0x27cdaa){for(var _0x346c95=0x0,_0x236140=events[_0xf392('0x6')];_0x346c95<_0x236140;_0x346c95++){var _0x5dd98b=events[_0x346c95];var _0xa03aae=createListener('voiceExtension:'+_0x5dd98b,_0x27cdaa);VoiceExtensionEvents['on'](_0x5dd98b,_0xa03aae);}};