Built motion from commit (unavailable).|2.5.27
[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 _0x0d5a=['update','removeListener','register','length','./voiceExtension.events','save'];(function(_0xd6b0b1,_0x2db1e5){var _0x1e2560=function(_0x21247b){while(--_0x21247b){_0xd6b0b1['push'](_0xd6b0b1['shift']());}};_0x1e2560(++_0x2db1e5);}(_0x0d5a,0x178));var _0xa0d5=function(_0x110c3d,_0x12ee06){_0x110c3d=_0x110c3d-0x0;var _0x226d67=_0x0d5a[_0x110c3d];return _0x226d67;};'use strict';var VoiceExtensionEvents=require(_0xa0d5('0x0'));var events=[_0xa0d5('0x1'),'remove',_0xa0d5('0x2')];function createListener(_0x45a79b,_0x3eb39d){return function(_0x1663fd){_0x3eb39d['emit'](_0x45a79b,_0x1663fd);};}function removeListener(_0x3fc5e4,_0x2a6af4){return function(){VoiceExtensionEvents[_0xa0d5('0x3')](_0x3fc5e4,_0x2a6af4);};}exports[_0xa0d5('0x4')]=function(_0x18426a){for(var _0x4ac248=0x0,_0x503baa=events[_0xa0d5('0x5')];_0x4ac248<_0x503baa;_0x4ac248++){var _0x3fb378=events[_0x4ac248];var _0x3c9529=createListener('voiceExtension:'+_0x3fb378,_0x18426a);VoiceExtensionEvents['on'](_0x3fb378,_0x3c9529);}};