6aadf757955fd8c9560c26340abdd1e058efcb93
[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 _0x4fdb=['removeListener','length','./voicePrefix.events','save','remove','update','emit'];(function(_0x1a1072,_0x84a807){var _0x415142=function(_0x3c20d6){while(--_0x3c20d6){_0x1a1072['push'](_0x1a1072['shift']());}};_0x415142(++_0x84a807);}(_0x4fdb,0x9c));var _0xb4fd=function(_0xd34467,_0x57205e){_0xd34467=_0xd34467-0x0;var _0x3aeda9=_0x4fdb[_0xd34467];return _0x3aeda9;};'use strict';var VoicePrefixEvents=require(_0xb4fd('0x0'));var events=[_0xb4fd('0x1'),_0xb4fd('0x2'),_0xb4fd('0x3')];function createListener(_0x3b399e,_0xafe34b){return function(_0x260a35){_0xafe34b[_0xb4fd('0x4')](_0x3b399e,_0x260a35);};}function removeListener(_0x1c0b08,_0x5b73bb){return function(){VoicePrefixEvents[_0xb4fd('0x5')](_0x1c0b08,_0x5b73bb);};}exports['register']=function(_0x14052b){for(var _0x5d8b39=0x0,_0x53273f=events[_0xb4fd('0x6')];_0x5d8b39<_0x53273f;_0x5d8b39++){var _0x3af8e3=events[_0x5d8b39];var _0x1151b5=createListener('voicePrefix:'+_0x3af8e3,_0x14052b);VoicePrefixEvents['on'](_0x3af8e3,_0x1151b5);}};