Built motion from commit (unavailable).|2.6.0
[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 _0xb7ce=['emit','register','./voiceExtension.events','save','remove'];(function(_0x52bfa5,_0x42cf21){var _0x26f80b=function(_0x73c5b0){while(--_0x73c5b0){_0x52bfa5['push'](_0x52bfa5['shift']());}};_0x26f80b(++_0x42cf21);}(_0xb7ce,0x1ec));var _0xeb7c=function(_0x51fded,_0x3ff952){_0x51fded=_0x51fded-0x0;var _0x1f7f38=_0xb7ce[_0x51fded];return _0x1f7f38;};'use strict';var VoiceExtensionEvents=require(_0xeb7c('0x0'));var events=[_0xeb7c('0x1'),_0xeb7c('0x2'),'update'];function createListener(_0xa39e7b,_0x326d5e){return function(_0x22562d){_0x326d5e[_0xeb7c('0x3')](_0xa39e7b,_0x22562d);};}function removeListener(_0x2abcbb,_0xaa999d){return function(){VoiceExtensionEvents['removeListener'](_0x2abcbb,_0xaa999d);};}exports[_0xeb7c('0x4')]=function(_0x46923b){for(var _0x4967c5=0x0,_0x2b3a6a=events['length'];_0x4967c5<_0x2b3a6a;_0x4967c5++){var _0x546902=events[_0x4967c5];var _0xaa3055=createListener('voiceExtension:'+_0x546902,_0x46923b);VoiceExtensionEvents['on'](_0x546902,_0xaa3055);}};