ffa713dad3a0301dea355b4ad9548b898c3b7daa
[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 _0x21f2=['register','voicePrefix:','./voicePrefix.events','save','remove','emit','removeListener'];(function(_0x140931,_0x2ffeba){var _0x4718ab=function(_0x1f08f7){while(--_0x1f08f7){_0x140931['push'](_0x140931['shift']());}};_0x4718ab(++_0x2ffeba);}(_0x21f2,0xf0));var _0x221f=function(_0x253f2f,_0x91b950){_0x253f2f=_0x253f2f-0x0;var _0x257145=_0x21f2[_0x253f2f];return _0x257145;};'use strict';var VoicePrefixEvents=require(_0x221f('0x0'));var events=[_0x221f('0x1'),_0x221f('0x2'),'update'];function createListener(_0x48770b,_0x18e03f){return function(_0x109c1a){_0x18e03f[_0x221f('0x3')](_0x48770b,_0x109c1a);};}function removeListener(_0x5af9bf,_0x2d54d0){return function(){VoicePrefixEvents[_0x221f('0x4')](_0x5af9bf,_0x2d54d0);};}exports[_0x221f('0x5')]=function(_0x445db0){for(var _0x126510=0x0,_0x577ddc=events['length'];_0x126510<_0x577ddc;_0x126510++){var _0x3fabde=events[_0x126510];var _0x1d3302=createListener(_0x221f('0x6')+_0x3fabde,_0x445db0);VoicePrefixEvents['on'](_0x3fabde,_0x1d3302);}};