Built motion from commit (unavailable).|2.5.12
[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 _0x05da=['length','./voiceExtension.events','emit','register'];(function(_0x545dd7,_0x43f4cc){var _0x30df59=function(_0x367148){while(--_0x367148){_0x545dd7['push'](_0x545dd7['shift']());}};_0x30df59(++_0x43f4cc);}(_0x05da,0x9d));var _0xa05d=function(_0x467309,_0x1af449){_0x467309=_0x467309-0x0;var _0x443217=_0x05da[_0x467309];return _0x443217;};'use strict';var VoiceExtensionEvents=require(_0xa05d('0x0'));var events=['save','remove','update'];function createListener(_0x1b016c,_0x28e94a){return function(_0x4c7353){_0x28e94a[_0xa05d('0x1')](_0x1b016c,_0x4c7353);};}function removeListener(_0x1ad543,_0x4b428c){return function(){VoiceExtensionEvents['removeListener'](_0x1ad543,_0x4b428c);};}exports[_0xa05d('0x2')]=function(_0x4a7193){for(var _0x53de77=0x0,_0x1ffd4b=events[_0xa05d('0x3')];_0x53de77<_0x1ffd4b;_0x53de77++){var _0x925c94=events[_0x53de77];var _0x3e751e=createListener('voiceExtension:'+_0x925c94,_0x4a7193);VoiceExtensionEvents['on'](_0x925c94,_0x3e751e);}};