6d7d450030492a4c3271c06427a131a1050a5c87
[motion2.git] / server / services / agi / error.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 _0x33ed=['E_AGI_UNDEFINED','push','format','apply','name','exports','Undefined\x20error.','Server\x20closed.','Socket\x20error.\x20Code:\x20%s.','Socket\x20closed.','Socket\x20timeout.','Missing\x20\x27ivr.entry\x27\x20menu.'];(function(_0x3611a7,_0x59563c){var _0x569692=function(_0x5bbdc7){while(--_0x5bbdc7){_0x3611a7['push'](_0x3611a7['shift']());}};_0x569692(++_0x59563c);}(_0x33ed,0x66));var _0xd33e=function(_0x4536a4,_0x55af7b){_0x4536a4=_0x4536a4-0x0;var _0x4fd1c1=_0x33ed[_0x4536a4];return _0x4fd1c1;};'use strict';var util=require('util');var error={'E_AGI_UNDEFINED':_0xd33e('0x0'),'E_AGI_ARGUMENT_PORT':'Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','E_AGI_SERVER_ERROR':'Server\x20error.\x20Code:\x20%s.','E_AGI_SERVER_CLOSE':_0xd33e('0x1'),'E_AGI_SERVER_MAXCONNECTION':'[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','E_AGI_SERVER_VOICE_DISABLED':'[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','E_AGI_SOCKET_ERROR':_0xd33e('0x2'),'E_AGI_SOCKET_CLOSE':_0xd33e('0x3'),'E_AGI_SOCKET_TIMEOUT':_0xd33e('0x4'),'E_AGI_COMMAND_EMPTY':'Empty\x20command.','E_AGI_IVR_AGI_NETWORK_SCRIPT':'Missing\x20\x27ivr.agi_network_script\x27.','E_AGI_IVR_ENTRY':_0xd33e('0x5')};function AGIError(_0x230ec8){var _0x230ec8=_0x230ec8||null,_0x8cc24b=_0x8cc24b||[],_0x32c230=0x1,_0x3baad9='';if(!error[_0x230ec8]){_0x230ec8=_0xd33e('0x6');}_0x8cc24b[_0xd33e('0x7')](error[_0x230ec8]);while(arguments[_0x32c230]){_0x8cc24b[_0xd33e('0x7')](arguments[_0x32c230]);_0x32c230++;}_0x3baad9=util[_0xd33e('0x8')][_0xd33e('0x9')](util,_0x8cc24b);this['message']=_0x3baad9;this[_0xd33e('0xa')]=_0x230ec8;}module[_0xd33e('0xb')]=AGIError;