Built motion from commit (unavailable).|2.5.21
[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 _0xcf68=['remove','update','emit','removeListener','register','length','voiceExtension:','./voiceExtension.events','save'];(function(_0x3a8677,_0x90fbe6){var _0x556ec4=function(_0x313617){while(--_0x313617){_0x3a8677['push'](_0x3a8677['shift']());}};_0x556ec4(++_0x90fbe6);}(_0xcf68,0xa9));var _0x8cf6=function(_0x279d37,_0x14de3f){_0x279d37=_0x279d37-0x0;var _0x530173=_0xcf68[_0x279d37];return _0x530173;};'use strict';var VoiceExtensionEvents=require(_0x8cf6('0x0'));var events=[_0x8cf6('0x1'),_0x8cf6('0x2'),_0x8cf6('0x3')];function createListener(_0x127a24,_0x3c5a22){return function(_0x51efb3){_0x3c5a22[_0x8cf6('0x4')](_0x127a24,_0x51efb3);};}function removeListener(_0x4aefcd,_0x1b93b2){return function(){VoiceExtensionEvents[_0x8cf6('0x5')](_0x4aefcd,_0x1b93b2);};}exports[_0x8cf6('0x6')]=function(_0x2a9324){for(var _0x1fe58b=0x0,_0x57bb9=events[_0x8cf6('0x7')];_0x1fe58b<_0x57bb9;_0x1fe58b++){var _0xf8f6ab=events[_0x1fe58b];var _0xa2696a=createListener(_0x8cf6('0x8')+_0xf8f6ab,_0x2a9324);VoiceExtensionEvents['on'](_0xf8f6ab,_0xa2696a);}};