3ae9ce71378adcbc371cfed5218c33c3a0b5e1a8
[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 _0xcc53=['update','emit','register','length','voicePrefix:','./voicePrefix.events'];(function(_0x101207,_0x56586b){var _0xe9aa3d=function(_0xf9662d){while(--_0xf9662d){_0x101207['push'](_0x101207['shift']());}};_0xe9aa3d(++_0x56586b);}(_0xcc53,0x1eb));var _0x3cc5=function(_0x1300a6,_0x110195){_0x1300a6=_0x1300a6-0x0;var _0x206189=_0xcc53[_0x1300a6];return _0x206189;};'use strict';var VoicePrefixEvents=require(_0x3cc5('0x0'));var events=['save','remove',_0x3cc5('0x1')];function createListener(_0xa113a6,_0x24e1e3){return function(_0x14db6a){_0x24e1e3[_0x3cc5('0x2')](_0xa113a6,_0x14db6a);};}function removeListener(_0x2d00e7,_0x55a249){return function(){VoicePrefixEvents['removeListener'](_0x2d00e7,_0x55a249);};}exports[_0x3cc5('0x3')]=function(_0x351652){for(var _0xced6d2=0x0,_0x451a43=events[_0x3cc5('0x4')];_0xced6d2<_0x451a43;_0xced6d2++){var _0x485261=events[_0xced6d2];var _0x1643ce=createListener(_0x3cc5('0x5')+_0x485261,_0x351652);VoicePrefixEvents['on'](_0x485261,_0x1643ce);}};