08c6f3d21297e4e32fcea383731f9e543b232260
[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 _0xd757=['save','remove','update','emit','removeListener','register','length','voicePrefix:','./voicePrefix.events'];(function(_0x501510,_0x61caa9){var _0x1e6ee5=function(_0x32845b){while(--_0x32845b){_0x501510['push'](_0x501510['shift']());}};_0x1e6ee5(++_0x61caa9);}(_0xd757,0x1e5));var _0x7d75=function(_0x29693b,_0x3d79c8){_0x29693b=_0x29693b-0x0;var _0x46a307=_0xd757[_0x29693b];return _0x46a307;};'use strict';var VoicePrefixEvents=require(_0x7d75('0x0'));var events=[_0x7d75('0x1'),_0x7d75('0x2'),_0x7d75('0x3')];function createListener(_0x479b13,_0x4edafa){return function(_0x379a63){_0x4edafa[_0x7d75('0x4')](_0x479b13,_0x379a63);};}function removeListener(_0x5e4a4c,_0xa7df66){return function(){VoicePrefixEvents[_0x7d75('0x5')](_0x5e4a4c,_0xa7df66);};}exports[_0x7d75('0x6')]=function(_0x52bb43){for(var _0x5d6128=0x0,_0x108c0d=events[_0x7d75('0x7')];_0x5d6128<_0x108c0d;_0x5d6128++){var _0x1cf272=events[_0x5d6128];var _0x276fb0=createListener(_0x7d75('0x8')+_0x1cf272,_0x52bb43);VoicePrefixEvents['on'](_0x1cf272,_0x276fb0);}};