11cf241e391c52b686e437d56782ea68f36c3b5d
[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 _0xc7fc=['save','remove','update','register','length','voicePrefix:','./voicePrefix.events'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc7fc,0xfb));var _0xcc7f=function(_0x10b6b2,_0x4039fd){_0x10b6b2=_0x10b6b2-0x0;var _0x8d1c1b=_0xc7fc[_0x10b6b2];return _0x8d1c1b;};'use strict';var VoicePrefixEvents=require(_0xcc7f('0x0'));var events=[_0xcc7f('0x1'),_0xcc7f('0x2'),_0xcc7f('0x3')];function createListener(_0x17f7df,_0x498310){return function(_0xa919f6){_0x498310['emit'](_0x17f7df,_0xa919f6);};}function removeListener(_0x1f1334,_0x1276bc){return function(){VoicePrefixEvents['removeListener'](_0x1f1334,_0x1276bc);};}exports[_0xcc7f('0x4')]=function(_0x1c1a47){for(var _0xdb5800=0x0,_0x282d16=events[_0xcc7f('0x5')];_0xdb5800<_0x282d16;_0xdb5800++){var _0x29dfa6=events[_0xdb5800];var _0x218013=createListener(_0xcc7f('0x6')+_0x29dfa6,_0x1c1a47);VoicePrefixEvents['on'](_0x29dfa6,_0x218013);}};