Built motion from commit (unavailable).|2.4.19
[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 _0x0bc4=['voiceExtension:','./voiceExtension.events','save','update','emit','removeListener','register','length'];(function(_0x699049,_0x51d7d6){var _0x5e25e4=function(_0x331b29){while(--_0x331b29){_0x699049['push'](_0x699049['shift']());}};_0x5e25e4(++_0x51d7d6);}(_0x0bc4,0x131));var _0x40bc=function(_0x1681bc,_0x5aa9c0){_0x1681bc=_0x1681bc-0x0;var _0x215f8f=_0x0bc4[_0x1681bc];return _0x215f8f;};'use strict';var VoiceExtensionEvents=require(_0x40bc('0x0'));var events=[_0x40bc('0x1'),'remove',_0x40bc('0x2')];function createListener(_0x51e5f0,_0xb2a622){return function(_0x16c651){_0xb2a622[_0x40bc('0x3')](_0x51e5f0,_0x16c651);};}function removeListener(_0x3a50cf,_0x214def){return function(){VoiceExtensionEvents[_0x40bc('0x4')](_0x3a50cf,_0x214def);};}exports[_0x40bc('0x5')]=function(_0x4f1e90){for(var _0x33d6b6=0x0,_0x30970d=events[_0x40bc('0x6')];_0x33d6b6<_0x30970d;_0x33d6b6++){var _0xcaadfc=events[_0x33d6b6];var _0x4021ba=createListener(_0x40bc('0x7')+_0xcaadfc,_0x4f1e90);VoiceExtensionEvents['on'](_0xcaadfc,_0x4021ba);}};