b4b3221751af297fe30d23d4111dda72c019a7ea
[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 _0x637c=['remove','update','emit','removeListener','register','length','voicePrefix:','save'];(function(_0x3757ed,_0x5b9c47){var _0x391e6f=function(_0xcd1a4c){while(--_0xcd1a4c){_0x3757ed['push'](_0x3757ed['shift']());}};_0x391e6f(++_0x5b9c47);}(_0x637c,0xaf));var _0xc637=function(_0x865e0e,_0x41280b){_0x865e0e=_0x865e0e-0x0;var _0x248778=_0x637c[_0x865e0e];return _0x248778;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0xc637('0x0'),_0xc637('0x1'),_0xc637('0x2')];function createListener(_0x55834b,_0x5ec136){return function(_0x2fe770){_0x5ec136[_0xc637('0x3')](_0x55834b,_0x2fe770);};}function removeListener(_0x109e22,_0x570936){return function(){VoicePrefixEvents[_0xc637('0x4')](_0x109e22,_0x570936);};}exports[_0xc637('0x5')]=function(_0x1e9305){for(var _0xa1d27b=0x0,_0xfcddf5=events[_0xc637('0x6')];_0xa1d27b<_0xfcddf5;_0xa1d27b++){var _0x2092d8=events[_0xa1d27b];var _0x885137=createListener(_0xc637('0x7')+_0x2092d8,_0x1e9305);VoicePrefixEvents['on'](_0x2092d8,_0x885137);}};