Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / services / agi / error.js
1 const a1026_0x1a19=['Undefined\x20error.','Empty\x20command.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','message','E_AGI_UNDEFINED','Server\x20error.\x20Code:\x20%s.','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','name','apply','Missing\x20\x27ivr.entry\x27\x20menu.','Socket\x20timeout.','Server\x20closed.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','push','exports'];(function(_0x516dbb,_0x1a19aa){const _0x31ccee=function(_0x50f259){while(--_0x50f259){_0x516dbb['push'](_0x516dbb['shift']());}};_0x31ccee(++_0x1a19aa);}(a1026_0x1a19,0xe6));const a1026_0x31cc=function(_0x516dbb,_0x1a19aa){_0x516dbb=_0x516dbb-0x0;let _0x31ccee=a1026_0x1a19[_0x516dbb];return _0x31ccee;};const _0x1e83ca=a1026_0x31cc;'use strict';const util=require('util'),error={'E_AGI_UNDEFINED':_0x1e83ca('0xa'),'E_AGI_ARGUMENT_PORT':_0x1e83ca('0x1'),'E_AGI_SERVER_ERROR':_0x1e83ca('0x0'),'E_AGI_SERVER_CLOSE':_0x1e83ca('0x6'),'E_AGI_SERVER_MAXCONNECTION':_0x1e83ca('0x7'),'E_AGI_SERVER_VOICE_DISABLED':_0x1e83ca('0xc'),'E_AGI_SOCKET_ERROR':'Socket\x20error.\x20Code:\x20%s.','E_AGI_SOCKET_CLOSE':'Socket\x20closed.','E_AGI_SOCKET_TIMEOUT':_0x1e83ca('0x5'),'E_AGI_COMMAND_EMPTY':_0x1e83ca('0xb'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':'Missing\x20\x27ivr.agi_network_script\x27.','E_AGI_IVR_ENTRY':_0x1e83ca('0x4')};function AGIError(_0x50f259){const _0x3b1d6f=_0x1e83ca;_0x50f259=_0x50f259||null;const _0x3ecc87=_0x3ecc87||[];let _0x589a9b=0x1,_0x3e15b4='';!error[_0x50f259]&&(_0x50f259=_0x3b1d6f('0xe'));_0x3ecc87[_0x3b1d6f('0x8')](error[_0x50f259]);while(arguments[_0x589a9b]){_0x3ecc87[_0x3b1d6f('0x8')](arguments[_0x589a9b]),_0x589a9b++;}_0x3e15b4=util['format'][_0x3b1d6f('0x3')](util,_0x3ecc87),this[_0x3b1d6f('0xd')]=_0x3e15b4,this[_0x3b1d6f('0x2')]=_0x50f259;}module[_0x1e83ca('0x9')]=AGIError;