Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / agi / error.js
index d8134a9..ae4fc2d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x15b7=['Undefined\x20error.','Server\x20error.\x20Code:\x20%s.','Server\x20closed.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','Socket\x20error.\x20Code:\x20%s.','Socket\x20closed.','Empty\x20command.','Missing\x20\x27ivr.entry\x27\x20menu.','push','format','apply','message','name'];(function(_0x952e5f,_0x3f3088){var _0x1e005f=function(_0x5b1a4c){while(--_0x5b1a4c){_0x952e5f['push'](_0x952e5f['shift']());}};_0x1e005f(++_0x3f3088);}(_0x15b7,0x142));var _0x715b=function(_0x1cc588,_0x3fe81d){_0x1cc588=_0x1cc588-0x0;var _0x528307=_0x15b7[_0x1cc588];return _0x528307;};'use strict';var util=require('util');var error={'E_AGI_UNDEFINED':_0x715b('0x0'),'E_AGI_ARGUMENT_PORT':'Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','E_AGI_SERVER_ERROR':_0x715b('0x1'),'E_AGI_SERVER_CLOSE':_0x715b('0x2'),'E_AGI_SERVER_MAXCONNECTION':_0x715b('0x3'),'E_AGI_SERVER_VOICE_DISABLED':_0x715b('0x4'),'E_AGI_SOCKET_ERROR':_0x715b('0x5'),'E_AGI_SOCKET_CLOSE':_0x715b('0x6'),'E_AGI_SOCKET_TIMEOUT':'Socket\x20timeout.','E_AGI_COMMAND_EMPTY':_0x715b('0x7'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':'Missing\x20\x27ivr.agi_network_script\x27.','E_AGI_IVR_ENTRY':_0x715b('0x8')};function AGIError(_0x1f2742){var _0x1f2742=_0x1f2742||null,_0x3af951=_0x3af951||[],_0x40d46c=0x1,_0x19d35f='';if(!error[_0x1f2742]){_0x1f2742='E_AGI_UNDEFINED';}_0x3af951[_0x715b('0x9')](error[_0x1f2742]);while(arguments[_0x40d46c]){_0x3af951[_0x715b('0x9')](arguments[_0x40d46c]);_0x40d46c++;}_0x19d35f=util[_0x715b('0xa')][_0x715b('0xb')](util,_0x3af951);this[_0x715b('0xc')]=_0x19d35f;this[_0x715b('0xd')]=_0x1f2742;}module['exports']=AGIError;
\ No newline at end of file
+var _0x77e1=['Socket\x20timeout.','Empty\x20command.','Missing\x20\x27ivr.entry\x27\x20menu.','E_AGI_UNDEFINED','push','format','apply','Server\x20error.\x20Code:\x20%s.','Server\x20closed.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','Socket\x20error.\x20Code:\x20%s.'];(function(_0x37bd26,_0x5ad346){var _0xe83dc4=function(_0x1ac229){while(--_0x1ac229){_0x37bd26['push'](_0x37bd26['shift']());}};_0xe83dc4(++_0x5ad346);}(_0x77e1,0xaf));var _0x177e=function(_0x13bead,_0x17bddc){_0x13bead=_0x13bead-0x0;var _0x12e9d7=_0x77e1[_0x13bead];return _0x12e9d7;};'use strict';var util=require('util');var error={'E_AGI_UNDEFINED':'Undefined\x20error.','E_AGI_ARGUMENT_PORT':'Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','E_AGI_SERVER_ERROR':_0x177e('0x0'),'E_AGI_SERVER_CLOSE':_0x177e('0x1'),'E_AGI_SERVER_MAXCONNECTION':_0x177e('0x2'),'E_AGI_SERVER_VOICE_DISABLED':_0x177e('0x3'),'E_AGI_SOCKET_ERROR':_0x177e('0x4'),'E_AGI_SOCKET_CLOSE':'Socket\x20closed.','E_AGI_SOCKET_TIMEOUT':_0x177e('0x5'),'E_AGI_COMMAND_EMPTY':_0x177e('0x6'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':'Missing\x20\x27ivr.agi_network_script\x27.','E_AGI_IVR_ENTRY':_0x177e('0x7')};function AGIError(_0x4dcfb4){var _0x4dcfb4=_0x4dcfb4||null,_0x4b7ca3=_0x4b7ca3||[],_0xd1af06=0x1,_0x127e6a='';if(!error[_0x4dcfb4]){_0x4dcfb4=_0x177e('0x8');}_0x4b7ca3[_0x177e('0x9')](error[_0x4dcfb4]);while(arguments[_0xd1af06]){_0x4b7ca3['push'](arguments[_0xd1af06]);_0xd1af06++;}_0x127e6a=util[_0x177e('0xa')][_0x177e('0xb')](util,_0x4b7ca3);this['message']=_0x127e6a;this['name']=_0x4dcfb4;}module['exports']=AGIError;
\ No newline at end of file