Built motion from commit 5ad77b03.|2.6.3
[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 _0x2179=['./voicePrefix.events','save','remove','update','emit','removeListener','register','voicePrefix:'];(function(_0x160814,_0x57b5c6){var _0x427a69=function(_0x3f1485){while(--_0x3f1485){_0x160814['push'](_0x160814['shift']());}};_0x427a69(++_0x57b5c6);}(_0x2179,0xc0));var _0x9217=function(_0x467622,_0x4ad91){_0x467622=_0x467622-0x0;var _0x35ca1a=_0x2179[_0x467622];return _0x35ca1a;};'use strict';var VoicePrefixEvents=require(_0x9217('0x0'));var events=[_0x9217('0x1'),_0x9217('0x2'),_0x9217('0x3')];function createListener(_0x1cd7c5,_0x30b6bf){return function(_0x86c47c){_0x30b6bf[_0x9217('0x4')](_0x1cd7c5,_0x86c47c);};}function removeListener(_0xe708c9,_0x2e397c){return function(){VoicePrefixEvents[_0x9217('0x5')](_0xe708c9,_0x2e397c);};}exports[_0x9217('0x6')]=function(_0x471e4c){for(var _0x17a107=0x0,_0x1ed3f7=events['length'];_0x17a107<_0x1ed3f7;_0x17a107++){var _0x1a0b98=events[_0x17a107];var _0x38127f=createListener(_0x9217('0x7')+_0x1a0b98,_0x471e4c);VoicePrefixEvents['on'](_0x1a0b98,_0x38127f);}};