Built motion from commit (unavailable).|2.5.3
[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 _0x12be=['voiceExtension:','update','emit','removeListener','length'];(function(_0x3db9a,_0x47e5f8){var _0x18dd37=function(_0x16910d){while(--_0x16910d){_0x3db9a['push'](_0x3db9a['shift']());}};_0x18dd37(++_0x47e5f8);}(_0x12be,0x74));var _0xe12b=function(_0x263f9d,_0x3d854e){_0x263f9d=_0x263f9d-0x0;var _0x4c4efa=_0x12be[_0x263f9d];return _0x4c4efa;};'use strict';var VoiceExtensionEvents=require('./voiceExtension.events');var events=['save','remove',_0xe12b('0x0')];function createListener(_0x1196a9,_0x56ff8f){return function(_0x4165fc){_0x56ff8f[_0xe12b('0x1')](_0x1196a9,_0x4165fc);};}function removeListener(_0x5e738e,_0x52d087){return function(){VoiceExtensionEvents[_0xe12b('0x2')](_0x5e738e,_0x52d087);};}exports['register']=function(_0x5d7b4b){for(var _0x4b932a=0x0,_0x22a4aa=events[_0xe12b('0x3')];_0x4b932a<_0x22a4aa;_0x4b932a++){var _0x38e811=events[_0x4b932a];var _0x57f708=createListener(_0xe12b('0x4')+_0x38e811,_0x5d7b4b);VoiceExtensionEvents['on'](_0x38e811,_0x57f708);}};