a4e6005dac412669bd284e956ac1c7977c0922fd
[motion2.git] / server / api / voicePrefix / voicePrefix.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 _0x1d90=['./voicePrefix.events','remove','emit','removeListener','register','length'];(function(_0x536c48,_0x56b18d){var _0x4a5007=function(_0xe1e874){while(--_0xe1e874){_0x536c48['push'](_0x536c48['shift']());}};_0x4a5007(++_0x56b18d);}(_0x1d90,0x13e));var _0x01d9=function(_0x48f8c4,_0x4e3dba){_0x48f8c4=_0x48f8c4-0x0;var _0x118849=_0x1d90[_0x48f8c4];return _0x118849;};'use strict';var VoicePrefixEvents=require(_0x01d9('0x0'));var events=['save',_0x01d9('0x1'),'update'];function createListener(_0x433fc8,_0x5525be){return function(_0x1d6da0){_0x5525be[_0x01d9('0x2')](_0x433fc8,_0x1d6da0);};}function removeListener(_0x47e13e,_0x2f2e27){return function(){VoicePrefixEvents[_0x01d9('0x3')](_0x47e13e,_0x2f2e27);};}exports[_0x01d9('0x4')]=function(_0x549267){for(var _0x500fb7=0x0,_0x1664eb=events[_0x01d9('0x5')];_0x500fb7<_0x1664eb;_0x500fb7++){var _0x598409=events[_0x500fb7];var _0xef9d5b=createListener('voicePrefix:'+_0x598409,_0x549267);VoicePrefixEvents['on'](_0x598409,_0xef9d5b);}};