83195c403da5f8d365f28c191edac29d76369fab
[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 _0xbd0e=['name','exports','util','Undefined\x20error.','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','Server\x20error.\x20Code:\x20%s.','Server\x20closed.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','Socket\x20closed.','Socket\x20timeout.','Missing\x20\x27ivr.agi_network_script\x27.','Missing\x20\x27ivr.entry\x27\x20menu.','push','format','apply','message'];(function(_0x5e295c,_0x4a2c73){var _0x5899aa=function(_0x25fecf){while(--_0x25fecf){_0x5e295c['push'](_0x5e295c['shift']());}};_0x5899aa(++_0x4a2c73);}(_0xbd0e,0x1a2));var _0xebd0=function(_0xc0d9bc,_0x2bd6be){_0xc0d9bc=_0xc0d9bc-0x0;var _0x32ff73=_0xbd0e[_0xc0d9bc];return _0x32ff73;};'use strict';var util=require(_0xebd0('0x0'));var error={'E_AGI_UNDEFINED':_0xebd0('0x1'),'E_AGI_ARGUMENT_PORT':_0xebd0('0x2'),'E_AGI_SERVER_ERROR':_0xebd0('0x3'),'E_AGI_SERVER_CLOSE':_0xebd0('0x4'),'E_AGI_SERVER_MAXCONNECTION':_0xebd0('0x5'),'E_AGI_SERVER_VOICE_DISABLED':'[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','E_AGI_SOCKET_ERROR':'Socket\x20error.\x20Code:\x20%s.','E_AGI_SOCKET_CLOSE':_0xebd0('0x6'),'E_AGI_SOCKET_TIMEOUT':_0xebd0('0x7'),'E_AGI_COMMAND_EMPTY':'Empty\x20command.','E_AGI_IVR_AGI_NETWORK_SCRIPT':_0xebd0('0x8'),'E_AGI_IVR_ENTRY':_0xebd0('0x9')};function AGIError(_0x3b3ae1){var _0x3b3ae1=_0x3b3ae1||null,_0x45bd90=_0x45bd90||[],_0x13befc=0x1,_0xc6a043='';if(!error[_0x3b3ae1]){_0x3b3ae1='E_AGI_UNDEFINED';}_0x45bd90[_0xebd0('0xa')](error[_0x3b3ae1]);while(arguments[_0x13befc]){_0x45bd90[_0xebd0('0xa')](arguments[_0x13befc]);_0x13befc++;}_0xc6a043=util[_0xebd0('0xb')][_0xebd0('0xc')](util,_0x45bd90);this[_0xebd0('0xd')]=_0xc6a043;this[_0xebd0('0xe')]=_0x3b3ae1;}module[_0xebd0('0xf')]=AGIError;