f246c97e15627855c8e84689640052d195227deb
[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 _0x18ed=['./voiceExtension.events','remove','update','emit','removeListener','length'];(function(_0x46f1fa,_0x1b583f){var _0x2e4360=function(_0x262dcb){while(--_0x262dcb){_0x46f1fa['push'](_0x46f1fa['shift']());}};_0x2e4360(++_0x1b583f);}(_0x18ed,0x1e0));var _0xd18e=function(_0x565c49,_0x54acd0){_0x565c49=_0x565c49-0x0;var _0x20ca34=_0x18ed[_0x565c49];return _0x20ca34;};'use strict';var VoiceExtensionEvents=require(_0xd18e('0x0'));var events=['save',_0xd18e('0x1'),_0xd18e('0x2')];function createListener(_0x576bf4,_0x44b1c5){return function(_0x30082a){_0x44b1c5[_0xd18e('0x3')](_0x576bf4,_0x30082a);};}function removeListener(_0x1edb5f,_0x3539fb){return function(){VoiceExtensionEvents[_0xd18e('0x4')](_0x1edb5f,_0x3539fb);};}exports['register']=function(_0x415056){for(var _0x3bd967=0x0,_0x543743=events[_0xd18e('0x5')];_0x3bd967<_0x543743;_0x3bd967++){var _0x189035=events[_0x3bd967];var _0x3f80a3=createListener('voiceExtension:'+_0x189035,_0x415056);VoiceExtensionEvents['on'](_0x189035,_0x3f80a3);}};