Built motion from commit (unavailable).|2.5.0
[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 _0xfc6c=['length','voicePrefix:','./voicePrefix.events','save','remove','update','emit','register'];(function(_0x2f868e,_0x37c2d6){var _0x5b8be5=function(_0x228332){while(--_0x228332){_0x2f868e['push'](_0x2f868e['shift']());}};_0x5b8be5(++_0x37c2d6);}(_0xfc6c,0x112));var _0xcfc6=function(_0x27c383,_0x284463){_0x27c383=_0x27c383-0x0;var _0x1143a9=_0xfc6c[_0x27c383];return _0x1143a9;};'use strict';var VoicePrefixEvents=require(_0xcfc6('0x0'));var events=[_0xcfc6('0x1'),_0xcfc6('0x2'),_0xcfc6('0x3')];function createListener(_0x450c0c,_0x666095){return function(_0x2d7040){_0x666095[_0xcfc6('0x4')](_0x450c0c,_0x2d7040);};}function removeListener(_0x41c128,_0x3f6ca5){return function(){VoicePrefixEvents['removeListener'](_0x41c128,_0x3f6ca5);};}exports[_0xcfc6('0x5')]=function(_0x15fde7){for(var _0x4de8c0=0x0,_0x1e0e0c=events[_0xcfc6('0x6')];_0x4de8c0<_0x1e0e0c;_0x4de8c0++){var _0x319400=events[_0x4de8c0];var _0x1fb396=createListener(_0xcfc6('0x7')+_0x319400,_0x15fde7);VoicePrefixEvents['on'](_0x319400,_0x1fb396);}};