Built motion from commit 25580385.|2.6.2
[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 _0xa900=['length','./voicePrefix.events','save','remove','update','emit','removeListener','register'];(function(_0x156324,_0x5d138c){var _0x508828=function(_0x38dbe6){while(--_0x38dbe6){_0x156324['push'](_0x156324['shift']());}};_0x508828(++_0x5d138c);}(_0xa900,0x101));var _0x0a90=function(_0x588f2c,_0x10e069){_0x588f2c=_0x588f2c-0x0;var _0x467467=_0xa900[_0x588f2c];return _0x467467;};'use strict';var VoicePrefixEvents=require(_0x0a90('0x0'));var events=[_0x0a90('0x1'),_0x0a90('0x2'),_0x0a90('0x3')];function createListener(_0x2a9b60,_0x4e133b){return function(_0x55f0b7){_0x4e133b[_0x0a90('0x4')](_0x2a9b60,_0x55f0b7);};}function removeListener(_0x5872bf,_0x4f5b00){return function(){VoicePrefixEvents[_0x0a90('0x5')](_0x5872bf,_0x4f5b00);};}exports[_0x0a90('0x6')]=function(_0x461b32){for(var _0x34ee43=0x0,_0x56a1e5=events[_0x0a90('0x7')];_0x34ee43<_0x56a1e5;_0x34ee43++){var _0x4718e9=events[_0x34ee43];var _0x33e3cf=createListener('voicePrefix:'+_0x4718e9,_0x461b32);VoicePrefixEvents['on'](_0x4718e9,_0x33e3cf);}};