Built motion from commit (unavailable).|2.5.30
[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 _0xedea=['remove','update','length','voiceExtension:','./voiceExtension.events','save'];(function(_0x4d2105,_0x5f1d2b){var _0x327637=function(_0x11b33a){while(--_0x11b33a){_0x4d2105['push'](_0x4d2105['shift']());}};_0x327637(++_0x5f1d2b);}(_0xedea,0x100));var _0xaede=function(_0x28e1d3,_0x4e8c36){_0x28e1d3=_0x28e1d3-0x0;var _0x7cb070=_0xedea[_0x28e1d3];return _0x7cb070;};'use strict';var VoiceExtensionEvents=require(_0xaede('0x0'));var events=[_0xaede('0x1'),_0xaede('0x2'),_0xaede('0x3')];function createListener(_0x413145,_0x3bd7d0){return function(_0x6cd4dd){_0x3bd7d0['emit'](_0x413145,_0x6cd4dd);};}function removeListener(_0x1a2a7f,_0x7d6c9a){return function(){VoiceExtensionEvents['removeListener'](_0x1a2a7f,_0x7d6c9a);};}exports['register']=function(_0x52b074){for(var _0x546c79=0x0,_0x5cd904=events[_0xaede('0x4')];_0x546c79<_0x5cd904;_0x546c79++){var _0x449287=events[_0x546c79];var _0x344afd=createListener(_0xaede('0x5')+_0x449287,_0x52b074);VoiceExtensionEvents['on'](_0x449287,_0x344afd);}};