Built motion from commit (unavailable).|2.5.11
[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 _0xe6f1=['./voiceExtension.events','save','remove','update','removeListener','register','voiceExtension:'];(function(_0x16e128,_0xb7c980){var _0x158f3a=function(_0x2084f2){while(--_0x2084f2){_0x16e128['push'](_0x16e128['shift']());}};_0x158f3a(++_0xb7c980);}(_0xe6f1,0x16c));var _0x1e6f=function(_0x4cefc3,_0x23f291){_0x4cefc3=_0x4cefc3-0x0;var _0x1cc779=_0xe6f1[_0x4cefc3];return _0x1cc779;};'use strict';var VoiceExtensionEvents=require(_0x1e6f('0x0'));var events=[_0x1e6f('0x1'),_0x1e6f('0x2'),_0x1e6f('0x3')];function createListener(_0x234e71,_0x428ddc){return function(_0x18683b){_0x428ddc['emit'](_0x234e71,_0x18683b);};}function removeListener(_0x1867db,_0x3b9e47){return function(){VoiceExtensionEvents[_0x1e6f('0x4')](_0x1867db,_0x3b9e47);};}exports[_0x1e6f('0x5')]=function(_0x50af1a){for(var _0x373d7c=0x0,_0x26f4fb=events['length'];_0x373d7c<_0x26f4fb;_0x373d7c++){var _0x292c36=events[_0x373d7c];var _0x337bc6=createListener(_0x1e6f('0x6')+_0x292c36,_0x50af1a);VoiceExtensionEvents['on'](_0x292c36,_0x337bc6);}};