Built motion from commit (unavailable).|2.5.31
[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 _0x0dbe=['remove','update','register','length','./voiceExtension.events','save'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0x0dbe,0x19c));var _0xe0db=function(_0x374ada,_0x27b3a5){_0x374ada=_0x374ada-0x0;var _0x449ed8=_0x0dbe[_0x374ada];return _0x449ed8;};'use strict';var VoiceExtensionEvents=require(_0xe0db('0x0'));var events=[_0xe0db('0x1'),_0xe0db('0x2'),_0xe0db('0x3')];function createListener(_0x4f3c23,_0xcc0561){return function(_0x317251){_0xcc0561['emit'](_0x4f3c23,_0x317251);};}function removeListener(_0x41d169,_0x5bb799){return function(){VoiceExtensionEvents['removeListener'](_0x41d169,_0x5bb799);};}exports[_0xe0db('0x4')]=function(_0x119de7){for(var _0x54d46d=0x0,_0x1a82de=events[_0xe0db('0x5')];_0x54d46d<_0x1a82de;_0x54d46d++){var _0x37ccf0=events[_0x54d46d];var _0x2509e4=createListener('voiceExtension:'+_0x37ccf0,_0x119de7);VoiceExtensionEvents['on'](_0x37ccf0,_0x2509e4);}};