Built motion from commit a679711e.|2.6.15
[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 _0xbf1a=['remove','update','removeListener','length','voicePrefix:','./voicePrefix.events','save'];(function(_0x4f1d64,_0x41b65c){var _0x5597c2=function(_0x120285){while(--_0x120285){_0x4f1d64['push'](_0x4f1d64['shift']());}};_0x5597c2(++_0x41b65c);}(_0xbf1a,0x7c));var _0xabf1=function(_0x191c45,_0x28f826){_0x191c45=_0x191c45-0x0;var _0x189f39=_0xbf1a[_0x191c45];return _0x189f39;};'use strict';var VoicePrefixEvents=require(_0xabf1('0x0'));var events=[_0xabf1('0x1'),_0xabf1('0x2'),_0xabf1('0x3')];function createListener(_0x690e59,_0x567007){return function(_0x132189){_0x567007['emit'](_0x690e59,_0x132189);};}function removeListener(_0x1b5f1a,_0x288b6c){return function(){VoicePrefixEvents[_0xabf1('0x4')](_0x1b5f1a,_0x288b6c);};}exports['register']=function(_0x5a477e){for(var _0x2a4ebd=0x0,_0x4f5b53=events[_0xabf1('0x5')];_0x2a4ebd<_0x4f5b53;_0x2a4ebd++){var _0x1cc1f6=events[_0x2a4ebd];var _0x1f48f5=createListener(_0xabf1('0x6')+_0x1cc1f6,_0x5a477e);VoicePrefixEvents['on'](_0x1cc1f6,_0x1f48f5);}};