c308686c9614254ceb916f3517da6e39cc704b4e
[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 _0x5397=['emit','register','length','save','remove','update'];(function(_0x54d4a8,_0x585a59){var _0x3b321b=function(_0x245c6a){while(--_0x245c6a){_0x54d4a8['push'](_0x54d4a8['shift']());}};_0x3b321b(++_0x585a59);}(_0x5397,0x105));var _0x7539=function(_0x14f107,_0x36f472){_0x14f107=_0x14f107-0x0;var _0x12dfec=_0x5397[_0x14f107];return _0x12dfec;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0x7539('0x0'),_0x7539('0x1'),_0x7539('0x2')];function createListener(_0x120f30,_0xad56a4){return function(_0x2f82e7){_0xad56a4[_0x7539('0x3')](_0x120f30,_0x2f82e7);};}function removeListener(_0x218a3a,_0x394310){return function(){VoicePrefixEvents['removeListener'](_0x218a3a,_0x394310);};}exports[_0x7539('0x4')]=function(_0x3486c2){for(var _0x4486c0=0x0,_0x2e3897=events[_0x7539('0x5')];_0x4486c0<_0x2e3897;_0x4486c0++){var _0x55b824=events[_0x4486c0];var _0x18ba43=createListener('voicePrefix:'+_0x55b824,_0x3486c2);VoicePrefixEvents['on'](_0x55b824,_0x18ba43);}};