Built motion from commit 21186556.|2.6.19
[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 _0x6611=['emit','removeListener','register','length','save','remove','update'];(function(_0x4218a0,_0xe7fbac){var _0x45bbc9=function(_0x1e48d6){while(--_0x1e48d6){_0x4218a0['push'](_0x4218a0['shift']());}};_0x45bbc9(++_0xe7fbac);}(_0x6611,0xdd));var _0x1661=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x6611[_0x19e35c];return _0x3e1fe8;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0x1661('0x0'),_0x1661('0x1'),_0x1661('0x2')];function createListener(_0x1a93fb,_0x3dcfbd){return function(_0x474832){_0x3dcfbd[_0x1661('0x3')](_0x1a93fb,_0x474832);};}function removeListener(_0x25bce6,_0x277da8){return function(){VoicePrefixEvents[_0x1661('0x4')](_0x25bce6,_0x277da8);};}exports[_0x1661('0x5')]=function(_0x1e5dab){for(var _0x58781d=0x0,_0x516d22=events[_0x1661('0x6')];_0x58781d<_0x516d22;_0x58781d++){var _0x3be60f=events[_0x58781d];var _0x57e4b8=createListener('voicePrefix:'+_0x3be60f,_0x1e5dab);VoicePrefixEvents['on'](_0x3be60f,_0x57e4b8);}};