b9ef996983280ee56682c56e55a9ca2aa93b282e
[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 _0x1cfc=['apply','message','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.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','Socket\x20error.\x20Code:\x20%s.','Socket\x20timeout.','Empty\x20command.','Missing\x20\x27ivr.entry\x27\x20menu.','E_AGI_UNDEFINED','push','format'];(function(_0x1ebda8,_0x46718a){var _0x5f13ac=function(_0x270c96){while(--_0x270c96){_0x1ebda8['push'](_0x1ebda8['shift']());}};_0x5f13ac(++_0x46718a);}(_0x1cfc,0x122));var _0xc1cf=function(_0xba64e0,_0x408534){_0xba64e0=_0xba64e0-0x0;var _0x1b17d3=_0x1cfc[_0xba64e0];return _0x1b17d3;};'use strict';var util=require(_0xc1cf('0x0'));var error={'E_AGI_UNDEFINED':_0xc1cf('0x1'),'E_AGI_ARGUMENT_PORT':_0xc1cf('0x2'),'E_AGI_SERVER_ERROR':_0xc1cf('0x3'),'E_AGI_SERVER_CLOSE':_0xc1cf('0x4'),'E_AGI_SERVER_MAXCONNECTION':_0xc1cf('0x5'),'E_AGI_SERVER_VOICE_DISABLED':_0xc1cf('0x6'),'E_AGI_SOCKET_ERROR':_0xc1cf('0x7'),'E_AGI_SOCKET_CLOSE':'Socket\x20closed.','E_AGI_SOCKET_TIMEOUT':_0xc1cf('0x8'),'E_AGI_COMMAND_EMPTY':_0xc1cf('0x9'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':'Missing\x20\x27ivr.agi_network_script\x27.','E_AGI_IVR_ENTRY':_0xc1cf('0xa')};function AGIError(_0x4b5552){var _0x4b5552=_0x4b5552||null,_0x49e5f9=_0x49e5f9||[],_0x14e14b=0x1,_0x1becef='';if(!error[_0x4b5552]){_0x4b5552=_0xc1cf('0xb');}_0x49e5f9[_0xc1cf('0xc')](error[_0x4b5552]);while(arguments[_0x14e14b]){_0x49e5f9[_0xc1cf('0xc')](arguments[_0x14e14b]);_0x14e14b++;}_0x1becef=util[_0xc1cf('0xd')][_0xc1cf('0xe')](util,_0x49e5f9);this[_0xc1cf('0xf')]=_0x1becef;this['name']=_0x4b5552;}module['exports']=AGIError;