eacffbcf16d0f57b12a80eb22c0d18030ecfb5e6
[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 _0x2f68=['update','register','length','voicePrefix:','save','remove'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x2f68,0x9a));var _0x82f6=function(_0x3cea61,_0x4d42cc){_0x3cea61=_0x3cea61-0x0;var _0x1e0a52=_0x2f68[_0x3cea61];return _0x1e0a52;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0x82f6('0x0'),_0x82f6('0x1'),_0x82f6('0x2')];function createListener(_0x3a9c8f,_0x4be334){return function(_0x43dc65){_0x4be334['emit'](_0x3a9c8f,_0x43dc65);};}function removeListener(_0x2a06dc,_0x2ab73d){return function(){VoicePrefixEvents['removeListener'](_0x2a06dc,_0x2ab73d);};}exports[_0x82f6('0x3')]=function(_0x2c4302){for(var _0x542737=0x0,_0x5a8089=events[_0x82f6('0x4')];_0x542737<_0x5a8089;_0x542737++){var _0x5660bf=events[_0x542737];var _0x5daa3c=createListener(_0x82f6('0x5')+_0x5660bf,_0x2c4302);VoicePrefixEvents['on'](_0x5660bf,_0x5daa3c);}};