7f4488d35b9fc74e0122986107caebc00412d15d
[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 _0xb332=['Socket\x20error.\x20Code:\x20%s.','Socket\x20timeout.','Missing\x20\x27ivr.agi_network_script\x27.','Missing\x20\x27ivr.entry\x27\x20menu.','push','format','apply','name','exports','util','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','Server\x20error.\x20Code:\x20%s.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.'];(function(_0x26dfc3,_0x3f2ead){var _0x692db6=function(_0x11ee82){while(--_0x11ee82){_0x26dfc3['push'](_0x26dfc3['shift']());}};_0x692db6(++_0x3f2ead);}(_0xb332,0xd9));var _0x2b33=function(_0x4fbb15,_0x21be0c){_0x4fbb15=_0x4fbb15-0x0;var _0x436338=_0xb332[_0x4fbb15];return _0x436338;};'use strict';var util=require(_0x2b33('0x0'));var error={'E_AGI_UNDEFINED':'Undefined\x20error.','E_AGI_ARGUMENT_PORT':_0x2b33('0x1'),'E_AGI_SERVER_ERROR':_0x2b33('0x2'),'E_AGI_SERVER_CLOSE':'Server\x20closed.','E_AGI_SERVER_MAXCONNECTION':_0x2b33('0x3'),'E_AGI_SERVER_VOICE_DISABLED':'[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','E_AGI_SOCKET_ERROR':_0x2b33('0x4'),'E_AGI_SOCKET_CLOSE':'Socket\x20closed.','E_AGI_SOCKET_TIMEOUT':_0x2b33('0x5'),'E_AGI_COMMAND_EMPTY':'Empty\x20command.','E_AGI_IVR_AGI_NETWORK_SCRIPT':_0x2b33('0x6'),'E_AGI_IVR_ENTRY':_0x2b33('0x7')};function AGIError(_0x478214){var _0x478214=_0x478214||null,_0x5a7a3f=_0x5a7a3f||[],_0x5ccf2d=0x1,_0x4302b7='';if(!error[_0x478214]){_0x478214='E_AGI_UNDEFINED';}_0x5a7a3f[_0x2b33('0x8')](error[_0x478214]);while(arguments[_0x5ccf2d]){_0x5a7a3f[_0x2b33('0x8')](arguments[_0x5ccf2d]);_0x5ccf2d++;}_0x4302b7=util[_0x2b33('0x9')][_0x2b33('0xa')](util,_0x5a7a3f);this['message']=_0x4302b7;this[_0x2b33('0xb')]=_0x478214;}module[_0x2b33('0xc')]=AGIError;