Built motion from commit (unavailable).|2.3.91
[motion2.git] / server / services / agi / vertices.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 _0xf786=['sesteknda','no\x20ndauth\x20url\x20configured','username','no\x20username\x20configured','ndassistant_url','Trying\x20SestekNDA:\x20%s','SESTEK_NDA_%s','audiofile','Sestek\x20NDA\x20%s\x20file\x20created','streamFile','.wav','SestekNDA\x20is\x20unreachable','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','trunk_id','no\x20trunk\x20selected','trunk_name','url','finally','Enter\x20in\x20FINALLY\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','retry','file_id','no\x20file\x20audio\x20selected','response','stringify','mindigit','maxdigit','no\x20variable\x20found','hiddendigitsnum','generate','hiddendigitspos','first','substr','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','Enter\x20in\x20GOAL\x20(%s)\x20block','goalname','GOAL\x20%s','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','no\x20valid\x20credentials\x20configured','aws\x20Polly\x20%s\x20file\x20created','awslex','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20bot\x20name\x20configured','Trying\x20Amazon\x20Lex:\x20%s','AWS_LEX_%s','message','Amazon\x20Lex\x20ready\x20for\x20fulfillment','out','Amazon\x20Lex\x20Result\x20%s','googleasr','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','no\x20key\x20configured','wav','%s.%s','beep','NOBEEP','recordFile','intKey','google\x20%s\x20file\x20created','GOOGLE_ASR_%s','GoogleASR\x20Result\x20%s','tildeasr','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20appid\x20configured','no\x20appsecret\x20configured','%s/recordings/%s','tilde\x20%s\x20file\x20created','TILDE_ASR_%s','Enter\x20in\x20GOTO\x20(%s)\x20block','continueAt','gotoif','Enter\x20in\x20GOTOIF\x20(%s)\x20block','condition','no\x20condition\x20configured','true','false','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','interval_id','no\x20interval\x20configured','no\x20intervals\x20found','IFTIME(%s?true:false)','IFTIME\x20%s\x20%s','hangup','Enter\x20in\x20HANGUP\x20(%s)\x20block','ispeechasr','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','ISPEECH_ASR_%s','ispeechtts','Trying\x20ispeech\x20TTS\x20%s','ispeech\x20%s\x20file\x20created','unlink','login','Enter\x20in\x20LOGIN\x20(%s)\x20block','findBy','no\x20find\x20by\x20configured','FIND\x20AGENT\x20%s\x20BY\x20%s','AGENT\x20%s\x20FOUND\x20BY','AGENT\x20%s\x20NOT\x20FOUND\x20BY','failure','logout','Enter\x20in\x20LOGOUT\x20(%s)\x20block','success','math','Enter\x20in\x20MATH\x20(%s)\x20block','operation','math\x20%s','isArray','variable\x20%s[key]\x20set','Enter\x20in\x20MENU\x20(%s)\x20block','getData','digit','Enter\x20in\x20NOOP\x20(%s)\x20block','pause','pause_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','no\x20file\x20audio\x20found','PLAYBACK','queue','Enter\x20in\x20QUEUE\x20(%s)\x20block','queue_id','no\x20queue\x20found','indexOf','XMCS-QUEUE','toLowerCase','macro','gosub','position','QUEUE','Enter\x20in\x20RECORD\x20(%s)\x20block','%s_%s','createSquareRecording','RECORDING_SAVENAME','Recording\x20%s\x20%s\x20%s\x20%s','escape_digits','saydigits','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','sayDigits','saynumber','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','sayNumber','number','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','sendMail','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','account_id','getMailAccount','Smtp','\x22%s\x22\x20<%s>','email','bcc','subject','service','host','port','secure','auth','user','pass','template_id','Trying\x20SendMail\x20with\x20account\x20%s','Mail\x20message\x20added\x20to\x20outgoing\x20process','sendFax','Enter\x20in\x20SENDFAX\x20(%s)\x20block','SENDFAX\x20block\x20not\x20implemented','sendSMS','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sms_account_id','sms_text','sendSMS\x20message','Sms\x20message\x20added\x20to\x20outgoing\x20process','set','Enter\x20in\x20SET\x20(%s)\x20block','no\x20variable\x20selected','variable_value','start','Enter\x20in\x20START\x20(%s)\x20block','START\x20CALLY\x20SQUARE','yes','Answer','subproject','project_id','no\x20subproject\x20selected','getSquareProject','no\x20subproject\x20found\x20with\x20id\x20%d','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','AGI','agi://%s/square,\x22%s\x22,\x22%s\x22','127.0.0.1','system','Enter\x20in\x20SYSTEM\x20(%s)\x20block','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sh\x20command:\x20%s\x20result\x20no\x20stored','command','tts','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','Trying\x20Google\x20TTS\x20%s','Google\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','unpause','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','voicemail','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','VOICEMAIL','mailbox','vswitch','replaceAll','join','exports','path','util','shelljs','odbc','randomstring','moment','mustache','../../config/logger','agi','../../config/environment','./scripts','/var/opt/motion2/server/files','getdigits','getsecretdigits','channel','rpc','mailRpc','prototype','getVariable','getVariableById','name','catch','getVoiceQueue','getVoiceQueueById','then','getSquareProjectById','getSquareOdbc','getSquareOdbcById','dsn','getUserById','getTrunk','getTrunkById','getSound','getSoundById','getSoundPath','getMailAccountById','sendMailMessage','getIntervals','getIntervalById','IntervalId','interval','map','getQueryOdbc','open','error','Error\x20getting\x20ODBC\x20connection\x20%s','info','query','Query\x20executed\x20correctly\x20%s','close','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getSmsAccount','createSmsMessage','createSquareDetailsReport','uniqueid','label','agicommand','arg_1','callerid','context','extension','priority','accountcode','dnid','createSquareMessage','createCmContact','isEmpty','isNil','random','lastName','phone','list_id','callback','Callback\x20scheduled\x20at\x20','scheduledAt','callback_priority','getPause','agentPause','agent','agentUnpause','agentLogout','format','LOCAL','agentLogin','shellCommand','exec','trim','googleTTS','text','google_tts_language','googleDialogflow','key','dialogflow_language','sestekNDA','ispeechTTS','en-US','speed','ispeechASR','isConfigured','model','awsPolly','aws_access_key_id','aws_polly_region','aws_polly_voice','Amy','aws_text_type','awsLex','aws_secret_access_key','aws_bot_name','googleASR','tildeASR','appid','appsecret','uri','clear','includes','clone','isString','replaceAllVariables','split','length','extra','toString','getAndSetVariable','result','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','setVariable','maxRetry','sync','Enter\x20in\x20AGI\x20(%s)\x20block','args','Enter\x20in\x20ANSWER\x20(%s)\x20block','timeout','Wait\x20%s\x20seconds\x20before\x20answer','wait','answer','Enter\x20in\x20CALLBACK\x20(%s)\x20block','no\x20list\x20selected','delay','add','minutes','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','application','noop','Executed\x20command\x20%s\x20%s','options','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20text\x20configured','MRCPSynth','Executed\x20command\x20MRCPSynth\x20%s','sestektts','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','lumenvoxasr','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','grammar','no\x20grammar\x20configured','MRCPRecog','RECOG_CONFIDENCE()','LUMENVOX_ASR_CONFIDENCE','RECOG_INPUT()','RECOG_INSTANCE()','sestekasr','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','SESTEK_ASR_CONFIDENCE','SESTEK_ASR_TRANSCRIPT','SESTEK_ASR_INSTANCE','Executed\x20command\x20MRCPRecog\x20%s','database','Enter\x20in\x20DATABASE\x20(%s)\x20block','odbc_id','no\x20database\x20selected','no\x20odbc\x20database\x20found','no\x20query\x20configured','replace','query:\x20%s','variable_id','no\x20variable\x20selected\x20for\x20the\x20result','forEach','keys','%s[%s][%s]','debug','Enter\x20in\x20DIAL\x20(%s)\x20block','sip_id','no\x20user\x20selected','getUser','no\x20user\x20found','DIAL','SIP/%s','opts','Executed\x20command\x20%s','dialogflow','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','bot','Trying\x20Dialogflow:\x20%s','hasOwnProperty','DIALOGFLOW_%s','toUpperCase','speech','Dialogflow\x20Result\x20%s','Dialogflow\x20is\x20unreachable'];(function(_0x1ea1b5,_0x1c7537){var _0x4b385a=function(_0x3e2f13){while(--_0x3e2f13){_0x1ea1b5['push'](_0x1ea1b5['shift']());}};_0x4b385a(++_0x1c7537);}(_0xf786,0xd0));var _0x6f78=function(_0x5d4660,_0x1e96e0){_0x5d4660=_0x5d4660-0x0;var _0x1e33dc=_0xf786[_0x5d4660];return _0x1e33dc;};'use strict';var fs=require('fs');var path=require(_0x6f78('0x0'));var util=require(_0x6f78('0x1'));var _=require('lodash');var sh=require(_0x6f78('0x2'));var odbc=require(_0x6f78('0x3'))();var rs=require(_0x6f78('0x4'));var moment=require(_0x6f78('0x5'));var Mustache=require(_0x6f78('0x6'));var logger=require(_0x6f78('0x7'))(_0x6f78('0x8'));var config=require(_0x6f78('0x9'));var scripts=require(_0x6f78('0xa'));var FILES_PATH=_0x6f78('0xb');var verticesWithRetry=['menu',_0x6f78('0xc'),_0x6f78('0xd')];var AGIVertices=function(_0x4662ce,_0x25e000,_0x452a24){this[_0x6f78('0xe')]=_0x4662ce;this[_0x6f78('0xf')]=_0x25e000;this[_0x6f78('0x10')]=_0x452a24;};AGIVertices[_0x6f78('0x11')][_0x6f78('0x12')]=function(_0x454758,_0x20b8d4){this['rpc'][_0x6f78('0x13')](_0x454758)['then'](function(_0x55c3ef){_0x20b8d4(null,_0x55c3ef?_0x55c3ef[_0x6f78('0x14')]:![]);})[_0x6f78('0x15')](function(_0x18043b){_0x20b8d4(_0x18043b);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x16')]=function(_0x23f074,_0xa918f4){this['rpc'][_0x6f78('0x17')](_0x23f074)[_0x6f78('0x18')](function(_0x92c411){_0xa918f4(null,_0x92c411?_0x92c411['name']:![]);})[_0x6f78('0x15')](function(_0x269d31){_0xa918f4(_0x269d31);});};AGIVertices[_0x6f78('0x11')]['getSquareProject']=function(_0x17366d,_0x3f927d){this[_0x6f78('0xf')][_0x6f78('0x19')](_0x17366d)[_0x6f78('0x18')](function(_0x3da276){_0x3f927d(null,_0x3da276?_0x3da276[_0x6f78('0x14')]:![]);})[_0x6f78('0x15')](function(_0x269695){_0x3f927d(_0x269695);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x1a')]=function(_0x1c1338,_0x1215a3){this[_0x6f78('0xf')][_0x6f78('0x1b')](_0x1c1338)[_0x6f78('0x18')](function(_0x5391a0){_0x1215a3(null,_0x5391a0?_0x5391a0[_0x6f78('0x1c')]:![]);})[_0x6f78('0x15')](function(_0x5ba4a1){_0x1215a3(_0x5ba4a1);});};AGIVertices['prototype']['getUser']=function(_0x4fce37,_0x15dbe7){this['rpc'][_0x6f78('0x1d')](_0x4fce37)[_0x6f78('0x18')](function(_0x3651ce){_0x15dbe7(null,_0x3651ce?_0x3651ce[_0x6f78('0x14')]:![]);})['catch'](function(_0x502f0a){_0x15dbe7(_0x502f0a);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x1e')]=function(_0x1577d0,_0x479494){this['rpc'][_0x6f78('0x1f')](_0x1577d0)['then'](function(_0x6cc47f){_0x479494(null,_0x6cc47f?_0x6cc47f[_0x6f78('0x14')]:![]);})[_0x6f78('0x15')](function(_0x311699){_0x479494(_0x311699);});};AGIVertices['prototype'][_0x6f78('0x20')]=function(_0x35e1d4,_0x1d95fb){var _0x5f3c9d=this;this['rpc'][_0x6f78('0x21')](_0x35e1d4)[_0x6f78('0x18')](function(_0x51cfd6){_0x1d95fb(null,_0x51cfd6?_0x5f3c9d[_0x6f78('0x22')](_0x51cfd6['save_name']):![]);})['catch'](function(_0x505c01){_0x1d95fb(_0x505c01);});};AGIVertices['prototype']['getMailAccount']=function(_0x5c4847,_0x459614){this[_0x6f78('0xf')][_0x6f78('0x23')](_0x5c4847)['then'](function(_0x52f9a9){_0x459614(null,_0x52f9a9?_0x52f9a9:![]);})[_0x6f78('0x15')](function(_0x2f32ee){_0x459614(_0x2f32ee);});};AGIVertices['prototype'][_0x6f78('0x24')]=function(_0x4091b9,_0x4204bd,_0x55c7dd){this['mailRpc']['sendMailMessage'](_0x4091b9,_0x4204bd)[_0x6f78('0x18')](function(){_0x55c7dd(null);})[_0x6f78('0x15')](function(_0x10e5fe){_0x55c7dd(_0x10e5fe);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x25')]=function(_0x46a584,_0x1e508a){this[_0x6f78('0xf')][_0x6f78('0x26')](_0x46a584)[_0x6f78('0x18')](function(_0xcfa4c9){if(_0xcfa4c9){if(_0xcfa4c9[_0x6f78('0x27')]){_0x1e508a(null,[_0xcfa4c9[_0x6f78('0x28')]]);}else{_0x1e508a(null,_[_0x6f78('0x29')](_0xcfa4c9['Intervals'],_0x6f78('0x28')));}}else{_0x1e508a(null,![]);}})[_0x6f78('0x15')](function(_0x3fda01){_0x1e508a(_0x3fda01);});};AGIVertices['prototype'][_0x6f78('0x22')]=function(_0x4e5455){return util['format']('%s/sounds/converted/%s',FILES_PATH,_0x4e5455);};AGIVertices[_0x6f78('0x11')][_0x6f78('0x2a')]=function(_0x2ef266,_0x4c71c7,_0x4bfc95){odbc[_0x6f78('0x2b')](_0x2ef266,function(_0x10c2c2){if(_0x10c2c2){logger[_0x6f78('0x2c')](_0x6f78('0x2d'),_0x10c2c2);_0x4bfc95(_0x10c2c2);}else{logger[_0x6f78('0x2e')]('ODBC\x20connection\x20successfully');odbc[_0x6f78('0x2f')](_0x4c71c7,function(_0xd868fd,_0x2a5a6e){if(_0xd868fd){logger[_0x6f78('0x2e')]('Error\x20executing\x20query\x20%s',_0x4c71c7);_0x4bfc95(_0xd868fd);}else{logger[_0x6f78('0x2e')](_0x6f78('0x30'),_0x4c71c7);odbc[_0x6f78('0x31')](function(_0x57cdf6){if(_0x57cdf6){logger[_0x6f78('0x2c')](_0x6f78('0x32'),_0x57cdf6);}_0x4bfc95(null,_0x2a5a6e);});}});}});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x33')]=function(_0x23c050,_0x36cfa2){this[_0x6f78('0xf')]['getSmsAccountById'](_0x23c050)['then'](function(_0x1d737a){_0x36cfa2(null,_0x1d737a?_0x1d737a:![]);})[_0x6f78('0x15')](function(_0x57ea86){_0x36cfa2(_0x57ea86);});};AGIVertices['prototype']['createSmsMessage']=function(_0x1a12d6,_0x20b68c){this[_0x6f78('0xf')][_0x6f78('0x34')](_0x1a12d6)[_0x6f78('0x18')](function(_0x12f5b9){_0x20b68c(null,_0x12f5b9);})[_0x6f78('0x15')](function(_0x3b4077){_0x20b68c(_0x3b4077);});};AGIVertices['prototype'][_0x6f78('0x35')]=function(_0x69811f,_0x4193d1,_0x1ef98d){this[_0x6f78('0xf')]['createSquareDetailsReport']({'uniqueid':this[_0x6f78('0xe')][_0x6f78('0x36')],'node':_0x69811f[_0x6f78('0x37')],'application':_0x69811f[_0x6f78('0x38')],'data':_0x4193d1||null,'project_name':this['channel'][_0x6f78('0x39')],'callerid':this['channel'][_0x6f78('0x3a')]})[_0x6f78('0x18')](function(_0x48eaf4){if(_0x1ef98d){_0x1ef98d(null,_0x48eaf4);}})[_0x6f78('0x15')](function(_0x37c36c){if(_0x1ef98d){_0x1ef98d(_0x37c36c);}});};AGIVertices[_0x6f78('0x11')]['createSquareRecording']=function(_0x1e4363,_0x24f987,_0x4ae9d5,_0x131c24){this[_0x6f78('0xf')]['createSquareRecording']({'uniqueid':this[_0x6f78('0xe')]['uniqueid'],'callerid':this['channel'][_0x6f78('0x3a')],'calleridname':this[_0x6f78('0xe')]['calleridname'],'context':this[_0x6f78('0xe')][_0x6f78('0x3b')],'extension':this[_0x6f78('0xe')][_0x6f78('0x3c')],'priority':this[_0x6f78('0xe')][_0x6f78('0x3d')],'accountcode':this['channel'][_0x6f78('0x3e')],'dnid':this['channel'][_0x6f78('0x3f')],'projectName':this[_0x6f78('0xe')]['arg_1'],'saveName':_0x24f987,'filename':_0x1e4363['file']||_0x24f987,'savePath':_0x4ae9d5})['then'](function(_0x44209a){_0x131c24(null,_0x44209a);})[_0x6f78('0x15')](function(_0x222a20){_0x131c24(_0x222a20);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x40')]=function(_0x3423ee,_0x4f832c,_0x1e9a0d){this[_0x6f78('0xf')][_0x6f78('0x40')]({'uniqueid':this['channel'][_0x6f78('0x36')],'body':_0x3423ee,'direction':_0x4f832c})[_0x6f78('0x18')](function(_0x11ce10){if(_0x1e9a0d){_0x1e9a0d(null,_0x11ce10);}})['catch'](function(_0x5d9ab){if(_0x1e9a0d){_0x1e9a0d(_0x5d9ab);}});};AGIVertices[_0x6f78('0x11')]['createCmContact']=function(_0x210fb8,_0x2b6cb8){this[_0x6f78('0xf')][_0x6f78('0x41')]({'firstName':_[_0x6f78('0x42')](_0x210fb8[_0x6f78('0x14')])||_[_0x6f78('0x43')](_0x210fb8[_0x6f78('0x14')])?'callback_'+Math[_0x6f78('0x44')]():_0x210fb8['name'],'lastName':_[_0x6f78('0x42')](_0x210fb8['lastName'])||_[_0x6f78('0x43')](_0x210fb8[_0x6f78('0x45')])?null:_0x210fb8['lastName'],'phone':_0x210fb8[_0x6f78('0x46')],'ListId':_0x210fb8[_0x6f78('0x47')],'scheduledAt':_0x210fb8['scheduledAt'],'callbackUniqueid':this[_0x6f78('0xe')][_0x6f78('0x36')],'tags':_0x6f78('0x48'),'description':_0x6f78('0x49')+_0x210fb8[_0x6f78('0x4a')]['toString'](),'priority':_0x210fb8[_0x6f78('0x4b')]})[_0x6f78('0x18')](function(_0x3f36c2){_0x2b6cb8(null,_0x3f36c2);})[_0x6f78('0x15')](function(_0x574a80){_0x2b6cb8(_0x574a80);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x4c')]=function(_0x541287,_0x253237){this[_0x6f78('0xf')]['getPauseById'](_0x541287)[_0x6f78('0x18')](function(_0x5a3fda){_0x253237(null,_0x5a3fda?_0x5a3fda['name']:![]);})[_0x6f78('0x15')](function(_0x32c2e7){_0x253237(_0x32c2e7);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x4d')]=function(_0x3432b4,_0x443ccf,_0x4e91c2){var _0x3cfdc1={'role':_0x6f78('0x4e')};_0x3cfdc1[_0x3432b4]=this[_0x6f78('0xe')][_0x6f78('0x3a')];this[_0x6f78('0xf')]['agentPause'](_0x3cfdc1,_0x443ccf,this[_0x6f78('0xe')]['uniqueid'])[_0x6f78('0x18')](function(_0x505217){_0x4e91c2(null,_['isNil'](_0x505217)?![]:!![]);})[_0x6f78('0x15')](function(_0x47243e){logger[_0x6f78('0x2c')](_0x47243e);_0x4e91c2(null,![]);});};AGIVertices[_0x6f78('0x11')]['agentUnpause']=function(_0x4e54dc,_0x5813c2){var _0xf5c84e={'role':_0x6f78('0x4e')};_0xf5c84e[_0x4e54dc]=this[_0x6f78('0xe')][_0x6f78('0x3a')];this[_0x6f78('0xf')][_0x6f78('0x4f')](_0xf5c84e)['then'](function(_0x95f0c5){_0x5813c2(null,_[_0x6f78('0x43')](_0x95f0c5)?![]:!![]);})[_0x6f78('0x15')](function(_0x1d27fc){logger['error'](_0x1d27fc);_0x5813c2(null,![]);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x50')]=function(_0x2e5d52,_0x12e76a){var _0x459036={'role':_0x6f78('0x4e')};_0x459036[_0x2e5d52]=this[_0x6f78('0xe')][_0x6f78('0x3a')];this[_0x6f78('0xf')][_0x6f78('0x50')](_0x459036)[_0x6f78('0x18')](function(_0x214ef6){_0x12e76a(null,_[_0x6f78('0x43')](_0x214ef6)?![]:!![]);})[_0x6f78('0x15')](function(_0x14e56a){logger['error'](_0x14e56a);_0x12e76a(null,![]);});};AGIVertices[_0x6f78('0x11')]['agentLogin']=function(_0x5af4f0,_0x2b28c8){var _0x21c1bf={'role':_0x6f78('0x4e')};_0x21c1bf[_0x5af4f0]=this[_0x6f78('0xe')][_0x6f78('0x3a')];var _0x3fa154=_0x5af4f0!='internal'?util[_0x6f78('0x51')]('%s/%s@from-sip/n',_0x6f78('0x52'),this['channel'][_0x6f78('0x3a')]):undefined;this[_0x6f78('0xf')][_0x6f78('0x53')](_0x21c1bf,_0x3fa154)[_0x6f78('0x18')](function(_0x22d8a9){_0x2b28c8(null,_['isNil'](_0x22d8a9)?![]:!![]);})[_0x6f78('0x15')](function(_0xa03416){logger[_0x6f78('0x2c')](_0xa03416);_0x2b28c8(null,![]);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x54')]=function(_0x8824e7,_0x53f1e3){sh[_0x6f78('0x55')](_[_0x6f78('0x56')](_0x8824e7),function(_0xd27091,_0x4db483){var _0x3d4a50=_0x4db483['replace'](/(\r\n|\n|\r)/gm,'');_0x53f1e3(null,_0x3d4a50);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x57')]=function(_0x10cbf4,_0x9ed4b7){scripts[_0x6f78('0x57')](_0x10cbf4[_0x6f78('0x58')],_0x10cbf4[_0x6f78('0x59')]||'en',0x1)['then'](function(_0x17bbd7){_0x9ed4b7(null,_0x17bbd7);})[_0x6f78('0x15')](function(_0x2b7e56){_0x9ed4b7(_0x2b7e56);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x5a')]=function(_0x4093df,_0x59a73a){scripts[_0x6f78('0x5a')](this[_0x6f78('0xe')][_0x6f78('0x36')],_0x4093df[_0x6f78('0x5b')],_0x4093df[_0x6f78('0x58')],_0x4093df[_0x6f78('0x5c')]||'en')[_0x6f78('0x18')](function(_0x2b7ce4){_0x59a73a(null,_0x2b7ce4);})[_0x6f78('0x15')](function(_0x76a1d8){_0x59a73a(_0x76a1d8);});};AGIVertices[_0x6f78('0x11')]['sestekNDA']=function(_0x121934,_0x1ae1a6){scripts[_0x6f78('0x5d')](this[_0x6f78('0xe')],_0x121934)[_0x6f78('0x18')](function(_0x3510ee){_0x1ae1a6(null,_0x3510ee);})[_0x6f78('0x15')](function(_0x12fe11){_0x1ae1a6(_0x12fe11);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x5e')]=function(_0xb69bfc,_0x26de47){scripts['ispeechTTS'](_0xb69bfc[_0x6f78('0x5b')],_0xb69bfc['text'],_0xb69bfc['ispeech_tts_language']||_0x6f78('0x5f'),_0xb69bfc[_0x6f78('0x60')])[_0x6f78('0x18')](function(_0x24f03f){_0x26de47(null,_0x24f03f);})[_0x6f78('0x15')](function(_0x20ee9a){_0x26de47(_0x20ee9a);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x61')]=function(_0x319650,_0x113f4f,_0x3ed266){scripts[_0x6f78('0x61')](_0x113f4f,_0x319650[_0x6f78('0x5b')],_0x319650['ispeech_asr_language']||'en-US',this[_0x6f78('0x62')](_0x319650[_0x6f78('0x63')])?_0x319650['model']:undefined)[_0x6f78('0x18')](function(_0x291a7a){_0x3ed266(null,_0x291a7a);})[_0x6f78('0x15')](function(_0x15f8c0){_0x3ed266(_0x15f8c0);});};AGIVertices['prototype']['awsPolly']=function(_0x6404db,_0xcb8641){scripts[_0x6f78('0x64')](_0x6404db[_0x6f78('0x65')],_0x6404db['aws_secret_access_key'],_0x6404db[_0x6f78('0x66')],_0x6404db[_0x6f78('0x67')]||_0x6f78('0x68'),_0x6404db[_0x6f78('0x58')],_0x6404db[_0x6f78('0x69')]||_0x6f78('0x58'))[_0x6f78('0x18')](function(_0x1ee2ea){_0xcb8641(null,_0x1ee2ea);})[_0x6f78('0x15')](function(_0x522a7e){_0xcb8641(_0x522a7e);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x6a')]=function(_0x45d878,_0x372d7b){scripts['awsLex'](this[_0x6f78('0xe')]['uniqueid'],_0x45d878['aws_access_key_id'],_0x45d878[_0x6f78('0x6b')],_0x45d878['aws_lex_region'],_0x45d878[_0x6f78('0x58')],_0x45d878[_0x6f78('0x6c')])[_0x6f78('0x18')](function(_0x114d54){_0x372d7b(null,_0x114d54);})[_0x6f78('0x15')](function(_0x7f3e34){_0x372d7b(_0x7f3e34);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x6d')]=function(_0x5eff13,_0xbf3e12,_0x2a461a){scripts[_0x6f78('0x6d')](_0xbf3e12,_0x5eff13[_0x6f78('0x5b')],_0x5eff13['google_asr_language']||_0x6f78('0x5f'))[_0x6f78('0x18')](function(_0x3ca357){_0x2a461a(null,_0x3ca357);})[_0x6f78('0x15')](function(_0x4b8042){_0x2a461a(_0x4b8042);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x6e')]=function(_0x4885ff,_0x42548d,_0x5363e2){scripts[_0x6f78('0x6e')](_0x42548d,_0x4885ff[_0x6f78('0x6f')],_0x4885ff[_0x6f78('0x70')],_0x4885ff[_0x6f78('0x71')])[_0x6f78('0x18')](function(_0x46fea4){_0x5363e2(null,_0x46fea4);})['catch'](function(_0x3ef1b6){_0x5363e2(_0x3ef1b6);});};AGIVertices[_0x6f78('0x11')][_0x6f78('0x72')]=function(_0x1f7a37){var _0x22fb82=_[_0x6f78('0x73')](verticesWithRetry,_0x1f7a37['agicommand'])?_0x1f7a37:_[_0x6f78('0x74')](_0x1f7a37);for(var _0xe42ade in _0x22fb82){if(_0x22fb82['hasOwnProperty'](_0xe42ade)){if(_0x22fb82[_0xe42ade]&&_[_0x6f78('0x75')](_0x22fb82[_0xe42ade])){_0x22fb82[_0xe42ade]=this[_0x6f78('0x76')](_0x22fb82[_0xe42ade]);}}}return _0x22fb82;};AGIVertices['prototype']['replaceAllVariables']=function(_0x370e99){var _0x55c4f5=_0x370e99['split']('{');for(var _0x44e7af=0x1;_0x44e7af<_0x55c4f5['length'];_0x44e7af+=0x1){var _0x2b9649=_0x55c4f5[_0x44e7af][_0x6f78('0x77')]('}');if(_0x2b9649[_0x6f78('0x78')]>0x1){_0x370e99=_0x370e99['replaceAll']('{'+_0x2b9649[0x0]+'}',this[_0x6f78('0xe')][_0x6f78('0x12')](_0x2b9649[0x0])[_0x6f78('0x79')]||_0x2b9649[0x0]);}}if(_0x55c4f5['length']===0x1){return _0x370e99[_0x6f78('0x7a')]();}return this[_0x6f78('0x76')](_0x370e99);};AGIVertices[_0x6f78('0x11')][_0x6f78('0x7b')]=function(_0x40f839,_0x419c26){var _0x56b44c=this['channel'][_0x6f78('0x12')](_0x40f839);if(_0x56b44c[_0x6f78('0x7c')]===-0x1){return _0x56b44c;}logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x7d'),_0x419c26,_0x56b44c[_0x6f78('0x79')]));return this[_0x6f78('0xe')][_0x6f78('0x7e')](_0x419c26,_0x56b44c[_0x6f78('0x79')]);};AGIVertices[_0x6f78('0x11')][_0x6f78('0x62')]=function(_0x15caf8){return _0x15caf8&&_0x15caf8!=='0'&&_0x15caf8!=='-1'&&_0x15caf8!=='';};AGIVertices['prototype'][_0x6f78('0x7f')]=function(_0xf8252b){this['createSquareDetailsReport'][_0x6f78('0x80')](this,_0xf8252b,'-');_0xf8252b['retry']=_0xf8252b[_0x6f78('0x7f')];return{'code':0xc8,'result':'-'};};AGIVertices[_0x6f78('0x11')]['agi']=function(_0x453994){logger['info'](util['format'](_0x6f78('0x81'),_0x453994[_0x6f78('0x37')]));return this[_0x6f78('0xe')][_0x6f78('0x8')]([_0x453994['command'],_0x453994[_0x6f78('0x82')]]);};AGIVertices[_0x6f78('0x11')]['answer']=function(_0x279ffb){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x83'),_0x279ffb[_0x6f78('0x37')]));if(this[_0x6f78('0x62')](_0x279ffb[_0x6f78('0x84')])){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x85'),_0x279ffb['timeout']));var _0x23839d=this[_0x6f78('0xe')][_0x6f78('0x86')](_0x279ffb[_0x6f78('0x84')]);if(_0x23839d[_0x6f78('0x7c')]===-0x1){return _0x23839d;}}return this['channel'][_0x6f78('0x87')]();};AGIVertices[_0x6f78('0x11')][_0x6f78('0x48')]=function(_0x14d344){logger[_0x6f78('0x2e')](util['format'](_0x6f78('0x88'),_0x14d344[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x14d344[_0x6f78('0x47')])){return this['channel'][_0x6f78('0x2c')](_0x14d344,_0x6f78('0x89'));}_0x14d344[_0x6f78('0x4a')]=moment();if(this[_0x6f78('0x62')](_0x14d344[_0x6f78('0x8a')])){_0x14d344[_0x6f78('0x4a')]=moment()[_0x6f78('0x8b')](_0x14d344[_0x6f78('0x8a')],_0x6f78('0x8c'));}if(!this[_0x6f78('0x62')](_0x14d344[_0x6f78('0x4b')])){_0x14d344[_0x6f78('0x4b')]=0x2;}this[_0x6f78('0x41')]['sync'](this,_0x14d344);return this[_0x6f78('0xe')]['noop'](util[_0x6f78('0x51')](_0x6f78('0x8d'),_0x14d344['phone'],_0x14d344[_0x6f78('0x47')],_0x14d344['scheduledAt']));};AGIVertices[_0x6f78('0x11')]['custom_app']=function(_0x29f53e){logger[_0x6f78('0x2e')](util['format']('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x29f53e[_0x6f78('0x37')]));var _0x5c35d2=this['channel']['exec'](_0x29f53e[_0x6f78('0x8e')],_0x29f53e['options']);if(_0x5c35d2[_0x6f78('0x7c')]===-0x1){return _0x5c35d2;}return this['channel'][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x90'),_0x29f53e[_0x6f78('0x8e')],_0x29f53e[_0x6f78('0x91')]));};AGIVertices['prototype']['lumenvoxtts']=function(_0x449228){logger[_0x6f78('0x2e')](util['format'](_0x6f78('0x92'),_0x449228['label']));if(!this[_0x6f78('0x62')](_0x449228[_0x6f78('0x58')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x93'));}var _0xca5a28='\x22'+_0x449228[_0x6f78('0x58')]+'\x22';if(this[_0x6f78('0x62')](_0x449228['options'])){_0xca5a28+=','+_0x449228[_0x6f78('0x91')];}var _0x1ff4f6=this[_0x6f78('0xe')][_0x6f78('0x55')](_0x6f78('0x94'),_0xca5a28);if(_0x1ff4f6['result']===-0x1){return _0x1ff4f6;}return this['channel'][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x95'),_0xca5a28));};AGIVertices[_0x6f78('0x11')][_0x6f78('0x96')]=function(_0xf348be){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x97'),_0xf348be[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0xf348be[_0x6f78('0x58')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x93'));}var _0x34e18a='\x22'+_0xf348be[_0x6f78('0x58')]+'\x22';if(this[_0x6f78('0x62')](_0xf348be['options'])){_0x34e18a+=','+_0xf348be[_0x6f78('0x91')];}var _0x20b01c=this[_0x6f78('0xe')][_0x6f78('0x55')](_0x6f78('0x94'),_0x34e18a);if(_0x20b01c[_0x6f78('0x7c')]===-0x1){return _0x20b01c;}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('Executed\x20command\x20MRCPSynth\x20%s',_0x34e18a));};AGIVertices[_0x6f78('0x11')][_0x6f78('0x98')]=function(_0x58079){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x99'),_0x58079[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x58079[_0x6f78('0x9a')])){return this[_0x6f78('0xe')]['noop'](_0x6f78('0x9b'));}var _0x47d56d=_0x58079[_0x6f78('0x9a')];if(this[_0x6f78('0x62')](_0x58079[_0x6f78('0x91')])){_0x47d56d+=','+_0x58079['options'];}var _0x4eade1=this[_0x6f78('0xe')][_0x6f78('0x55')](_0x6f78('0x9c'),_0x47d56d);if(_0x4eade1[_0x6f78('0x7c')]===-0x1){return _0x4eade1;}var _0x33fe4b=this[_0x6f78('0x7b')](_0x6f78('0x9d'),_0x6f78('0x9e'));if(_0x33fe4b[_0x6f78('0x7c')]===-0x1){return _0x33fe4b;}var _0x571273=this[_0x6f78('0x7b')](_0x6f78('0x9f'),'LUMENVOX_ASR_TRANSCRIPT');if(_0x571273['result']===-0x1){return _0x571273;}var _0x3a64b8=this['getAndSetVariable'](_0x6f78('0xa0'),'LUMENVOX_ASR_INSTANCE');if(_0x3a64b8[_0x6f78('0x7c')]===-0x1){return _0x3a64b8;}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('Executed\x20command\x20MRCPRecog\x20%s',_0x47d56d));};AGIVertices[_0x6f78('0x11')][_0x6f78('0xa1')]=function(_0x5a34f2){logger[_0x6f78('0x2e')](util['format'](_0x6f78('0xa2'),_0x5a34f2[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x5a34f2['grammar'])){return this['channel'][_0x6f78('0x8f')](_0x6f78('0x9b'));}var _0x184ffa=_0x5a34f2[_0x6f78('0x9a')];if(this['isConfigured'](_0x5a34f2[_0x6f78('0x91')])){_0x184ffa+=','+_0x5a34f2['options'];}var _0x593bb0=this[_0x6f78('0xe')][_0x6f78('0x55')](_0x6f78('0x9c'),_0x184ffa);if(_0x593bb0[_0x6f78('0x7c')]===-0x1){return _0x593bb0;}var _0x3ac162=this['getAndSetVariable'](_0x6f78('0x9d'),_0x6f78('0xa3'));if(_0x3ac162[_0x6f78('0x7c')]===-0x1){return _0x3ac162;}var _0x593433=this[_0x6f78('0x7b')](_0x6f78('0x9f'),_0x6f78('0xa4'));if(_0x593433[_0x6f78('0x7c')]===-0x1){return _0x593433;}var _0x53516e=this[_0x6f78('0x7b')](_0x6f78('0xa0'),_0x6f78('0xa5'));if(_0x53516e['result']===-0x1){return _0x53516e;}return this[_0x6f78('0xe')]['noop'](util[_0x6f78('0x51')](_0x6f78('0xa6'),_0x184ffa));};AGIVertices[_0x6f78('0x11')][_0x6f78('0xa7')]=function(_0x438fc2){logger[_0x6f78('0x2e')](util['format'](_0x6f78('0xa8'),_0x438fc2['label']));if(!this[_0x6f78('0x62')](_0x438fc2[_0x6f78('0xa9')])){return this[_0x6f78('0xe')]['error'](_0x438fc2,_0x6f78('0xaa'));}var _0x55888e=this[_0x6f78('0x1a')][_0x6f78('0x80')](this,_0x438fc2[_0x6f78('0xa9')]);if(!_0x55888e){return this[_0x6f78('0xe')]['error'](_0x438fc2,_0x6f78('0xab'));}if(!this['isConfigured'](_0x438fc2[_0x6f78('0x2f')])){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x438fc2,_0x6f78('0xac'));}var _0x19e078=_0x438fc2[_0x6f78('0x2f')][_0x6f78('0xad')](/(\r\n|\n|\r)/gm,'\x20');this[_0x6f78('0xe')]['noop'](util[_0x6f78('0x51')](_0x6f78('0xae'),_0x19e078));var _0x5a1cb7=this[_0x6f78('0x2a')]['sync'](this,_0x55888e,_0x19e078);this['createSquareDetailsReport'][_0x6f78('0x80')](this,_0x438fc2,_0x19e078);if(!this[_0x6f78('0x62')](_0x438fc2[_0x6f78('0xaf')])){return this['channel'][_0x6f78('0x8f')](_0x6f78('0xb0'));}var _0x59755c=this[_0x6f78('0x12')]['sync'](this,_0x438fc2[_0x6f78('0xaf')]);if(!_0x59755c){return this['channel'][_0x6f78('0x2c')](_0x438fc2,'no\x20variable\x20found');}var _0x1a3582=this;_0x5a1cb7[_0x6f78('0xb1')](function(_0xf84a42,_0x41894f){Object[_0x6f78('0xb2')](_0xf84a42)[_0x6f78('0xb1')](function(_0x21bfa3){_0x1a3582[_0x6f78('0xe')][_0x6f78('0x7e')](util[_0x6f78('0x51')](_0x6f78('0xb3'),_0x59755c,_0x41894f,_0x21bfa3),_0xf84a42[_0x21bfa3]);});});this[_0x6f78('0xe')][_0x6f78('0x7e')](util['format']('%s_ROWS_COUNT',_0x59755c),_0x5a1cb7[_0x6f78('0x78')]);return this['channel'][_0x6f78('0x8f')](util[_0x6f78('0x51')]('variable\x20%s\x20set',_0x59755c));};AGIVertices[_0x6f78('0x11')]['dial']=function(_0x396989){logger[_0x6f78('0xb4')](util['format'](_0x6f78('0xb5'),_0x396989[_0x6f78('0x37')]));if(!this['isConfigured'](_0x396989[_0x6f78('0xb6')])){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x396989,_0x6f78('0xb7'));}var _0x1f514d=this[_0x6f78('0xb8')][_0x6f78('0x80')](this,_0x396989['sip_id']);if(!_0x1f514d){return this[_0x6f78('0xe')]['error'](_0x396989,_0x6f78('0xb9'));}var _0x25f8c3=this[_0x6f78('0xe')]['exec'](_0x6f78('0xba'),[util['format'](_0x6f78('0xbb'),_0x1f514d),_0x396989[_0x6f78('0x84')],_0x396989[_0x6f78('0xbc')],_0x396989['url']]);if(_0x25f8c3[_0x6f78('0x7c')]===-0x1){return _0x25f8c3;}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0xbd'),_0x6f78('0xba')));};AGIVertices[_0x6f78('0x11')][_0x6f78('0xbe')]=function(_0x23968f){logger['info'](util[_0x6f78('0x51')](_0x6f78('0xbf'),_0x23968f[_0x6f78('0x37')]));if(!this['isConfigured'](_0x23968f[_0x6f78('0x5b')])){return this[_0x6f78('0xe')]['noop']('no\x20key\x20configured');}if(!this[_0x6f78('0x62')](_0x23968f[_0x6f78('0x58')])){return this[_0x6f78('0xe')]['noop']('no\x20text\x20configured');}this[_0x6f78('0xe')][_0x6f78('0xc0')]=!![];this[_0x6f78('0x35')](_0x23968f);this[_0x6f78('0x40')](_0x23968f[_0x6f78('0x58')],'in');this['channel'][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0xc1'),_0x23968f[_0x6f78('0x58')]));var _0x480ee6=this[_0x6f78('0x5a')][_0x6f78('0x80')](this,_0x23968f);if(_0x480ee6){for(var _0x1ac2c1 in _0x480ee6){if(_0x480ee6[_0x6f78('0xc2')](_0x1ac2c1)){this[_0x6f78('0xe')][_0x6f78('0x7e')](util['format'](_0x6f78('0xc3'),_0x1ac2c1[_0x6f78('0xc4')]()),_0x480ee6[_0x1ac2c1]);}}this[_0x6f78('0x40')](_0x480ee6[_0x6f78('0xc5')],'out');return this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0xc6'),_0x480ee6[_0x6f78('0xc5')]));}return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x23968f,_0x6f78('0xc7'));};AGIVertices[_0x6f78('0x11')][_0x6f78('0xc8')]=function(_0x38e351){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x38e351[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x38e351['ndauth_url'])){return this[_0x6f78('0xe')]['noop'](_0x6f78('0xc9'));}if(!this['isConfigured'](_0x38e351[_0x6f78('0xca')])){return this[_0x6f78('0xe')]['noop'](_0x6f78('0xcb'));}if(!this[_0x6f78('0x62')](_0x38e351['password'])){return this[_0x6f78('0xe')][_0x6f78('0x8f')]('no\x20password\x20configured');}if(!this[_0x6f78('0x62')](_0x38e351[_0x6f78('0xcc')])){return this['channel']['noop']('no\x20text\x20configured');}this['channel'][_0x6f78('0xc0')]=!![];this[_0x6f78('0x35')](_0x38e351);this[_0x6f78('0x40')](_0x38e351[_0x6f78('0x58')],'in');this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0xcd'),_0x38e351[_0x6f78('0x58')]));var _0x3b6d16=this[_0x6f78('0x5d')][_0x6f78('0x80')](this,_0x38e351);if(_0x3b6d16){for(var _0x1f8e00 in _0x3b6d16){if(_0x3b6d16[_0x6f78('0xc2')](_0x1f8e00)){this[_0x6f78('0xe')][_0x6f78('0x7e')](util[_0x6f78('0x51')](_0x6f78('0xce'),_0x1f8e00[_0x6f78('0xc4')]()),_0x3b6d16[_0x1f8e00]);}}this['createSquareMessage'](_0x3b6d16[_0x6f78('0xc5')],'out');if(_0x3b6d16[_0x6f78('0xcf')]){this[_0x6f78('0xe')]['noop'](util[_0x6f78('0x51')](_0x6f78('0xd0'),_0x3b6d16['audiofile']));var _0x5e793a=this['channel'][_0x6f78('0xd1')](_0x3b6d16['audiofile']);try{fs['unlink'](_0x3b6d16[_0x6f78('0xcf')]+_0x6f78('0xd2'));}catch(_0x4e2587){logger[_0x6f78('0x2c')](_0x4e2587);}return _0x5e793a;}else{return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('SestekNDA\x20Result\x20%s',_0x3b6d16[_0x6f78('0xc5')]));}}return this['channel'][_0x6f78('0x2c')](_0x38e351,_0x6f78('0xd3'));};AGIVertices['prototype']['end']=function(_0x38503a){logger[_0x6f78('0x2e')](util['format']('Enter\x20in\x20END\x20(%s)\x20block',_0x38503a[_0x6f78('0x37')]));return this['channel']['noop']('end');};AGIVertices[_0x6f78('0x11')]['ext_dial']=function(_0x122aeb){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0xd4'),_0x122aeb['label']));var _0x4e7f3c='';if(_0x122aeb[_0x6f78('0xd5')]){if(!this[_0x6f78('0x62')](_0x122aeb[_0x6f78('0xd5')])){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x122aeb,_0x6f78('0xd6'));}else{var _0x42a64f=parseInt(_0x122aeb[_0x6f78('0xd5')],0xa);if(isNaN(_0x42a64f)){_0x4e7f3c=_0x122aeb[_0x6f78('0xd5')];}else{_0x4e7f3c=this[_0x6f78('0x1e')][_0x6f78('0x80')](this,_0x122aeb[_0x6f78('0xd5')]);if(!_0x4e7f3c){return this['channel'][_0x6f78('0x2c')](_0x122aeb,'no\x20trunk\x20found');}}}}else if(_0x122aeb['trunk_name']){_0x4e7f3c=_0x122aeb[_0x6f78('0xd7')];}else{return this['channel']['error'](_0x122aeb,_0x6f78('0xd6'));}var _0x4b4d1a=this['channel'][_0x6f78('0x55')](_0x6f78('0xba'),[util[_0x6f78('0x51')]('SIP/%s/%s',_0x4e7f3c,_0x122aeb[_0x6f78('0x46')]),_0x122aeb['timeout'],_0x122aeb[_0x6f78('0xbc')],_0x122aeb[_0x6f78('0xd8')]]);if(_0x4b4d1a['result']===-0x1){return _0x4b4d1a;}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0xbd'),_0x6f78('0xba')));};AGIVertices[_0x6f78('0x11')][_0x6f78('0xd9')]=function(_0x212b33){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0xda'),_0x212b33[_0x6f78('0x37')]));return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0xd9'));};AGIVertices[_0x6f78('0x11')][_0x6f78('0xc')]=function(_0x585ffb){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0xdb'),_0x585ffb[_0x6f78('0x37')]));if(_0x585ffb['retry']===0x0){return this[_0x6f78('0x7f')](_0x585ffb);}_0x585ffb[_0x6f78('0xdc')]-=0x1;if(!this[_0x6f78('0x62')](_0x585ffb[_0x6f78('0xdd')])){return this['channel'][_0x6f78('0x2c')](_0x585ffb,_0x6f78('0xde'));}var _0xb8d6e2=this[_0x6f78('0x20')]['sync'](this,_0x585ffb[_0x6f78('0xdd')]);if(!_0xb8d6e2){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x585ffb,'no\x20file\x20audio\x20found');}if(!this[_0x6f78('0x62')](_0x585ffb[_0x6f78('0xaf')])){return this[_0x6f78('0xe')]['error'](_0x6f78('0xb0'));}var _0x4ecb81=this['channel']['getData'](_0xb8d6e2,_0x585ffb[_0x6f78('0xdf')],_0x585ffb['maxdigit']);var _0xeb86a4=_0x4ecb81[_0x6f78('0x7c')]?_0x4ecb81['result'][_0x6f78('0x7a')]():'';logger['info']('test',JSON[_0x6f78('0xe0')](_0x4ecb81));if(_0x4ecb81[_0x6f78('0x7c')]===-0x1){this[_0x6f78('0x35')]['sync'](this,_0x585ffb,_0xeb86a4);return _0x4ecb81;}else if(_0x4ecb81['extra']===_0x6f78('0x84')){_0x4ecb81[_0x6f78('0x7c')]=_0xeb86a4[_0x6f78('0x78')]>=parseInt(_0x585ffb[_0x6f78('0xe1')])?'x':'i';}else{_0x4ecb81[_0x6f78('0x7c')]=_0xeb86a4[_0x6f78('0x78')]>=parseInt(_0x585ffb[_0x6f78('0xe1')])&&_0xeb86a4[_0x6f78('0x78')]<=parseInt(_0x585ffb[_0x6f78('0xe2')])?'x':'i';}var _0x1300e2=this[_0x6f78('0x12')][_0x6f78('0x80')](this,_0x585ffb[_0x6f78('0xaf')]);if(!_0x1300e2){return this['channel'][_0x6f78('0x2c')](_0x585ffb,_0x6f78('0xe3'));}this['channel']['setVariable'](_0x1300e2,_0xeb86a4);if(this[_0x6f78('0x62')](_0x585ffb[_0x6f78('0xe4')])){var _0x519e79=parseInt(_0x585ffb[_0x6f78('0xe4')],0xa);var _0x3ebe02=rs[_0x6f78('0xe5')]({'charset':'*','length':_0x519e79});var _0x30b92b=_0xeb86a4[_0x6f78('0x78')];if(_0x30b92b>0x0){if(_0x30b92b>_0x519e79){this['createSquareDetailsReport'][_0x6f78('0x80')](this,_0x585ffb,_0x585ffb[_0x6f78('0xe6')]===_0x6f78('0xe7')?_0x3ebe02+_0xeb86a4[_0x6f78('0xe8')](_0x519e79):_0xeb86a4[_0x6f78('0xe8')](0x0,_0x30b92b-_0x519e79)+_0x3ebe02);}else{this['createSquareDetailsReport'][_0x6f78('0x80')](this,_0x585ffb,rs[_0x6f78('0xe5')]({'charset':'*','length':_0x30b92b}));}}else{this['createSquareDetailsReport'][_0x6f78('0x80')](this,_0x585ffb,'');}}else{this['createSquareDetailsReport'][_0x6f78('0x80')](this,_0x585ffb,_0xeb86a4);}return _0x4ecb81;};AGIVertices[_0x6f78('0x11')][_0x6f78('0xd')]=function(_0x1d63f3){logger[_0x6f78('0x2e')](util['format'](_0x6f78('0xe9'),_0x1d63f3[_0x6f78('0x37')]));return this[_0x6f78('0xc')](_0x1d63f3);};AGIVertices[_0x6f78('0x11')]['goal']=function(_0x5a1e70){logger['info'](util[_0x6f78('0x51')](_0x6f78('0xea'),_0x5a1e70[_0x6f78('0x37')]));this[_0x6f78('0x35')][_0x6f78('0x80')](this,_0x5a1e70,_0x5a1e70[_0x6f78('0xeb')]);return this['channel'][_0x6f78('0x8f')](util['format'](_0x6f78('0xec'),_0x5a1e70[_0x6f78('0xeb')]));};AGIVertices[_0x6f78('0x11')]['awspolly']=function(_0xdcf402){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0xed'),_0xdcf402[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0xdcf402['aws_access_key_id'])||!this[_0x6f78('0x62')](_0xdcf402['aws_secret_access_key'])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0xee'));}if(!this[_0x6f78('0x62')](_0xdcf402[_0x6f78('0x58')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')]('no\x20text\x20configured');}this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('Trying\x20aws\x20Polly\x20%s',_0xdcf402['text']));var _0x41af4e=this[_0x6f78('0x64')]['sync'](this,_0xdcf402);if(_0x41af4e){this[_0x6f78('0xe')]['noop'](util['format'](_0x6f78('0xef'),_0x41af4e));var _0x17844c=this['channel'][_0x6f78('0xd1')](_0x41af4e);try{fs['unlink'](_0x41af4e+_0x6f78('0xd2'));}catch(_0x49f635){logger[_0x6f78('0x2c')](_0x49f635);}return _0x17844c;}return this['channel'][_0x6f78('0x2c')](_0xdcf402,'aws\x20Polly\x20is\x20unreachable');};AGIVertices['prototype'][_0x6f78('0xf0')]=function(_0x7f1d89){logger['info'](util[_0x6f78('0x51')](_0x6f78('0xf1'),_0x7f1d89[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x7f1d89[_0x6f78('0x65')])||!this[_0x6f78('0x62')](_0x7f1d89[_0x6f78('0x6b')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')]('no\x20valid\x20credentials\x20configured');}if(!this[_0x6f78('0x62')](_0x7f1d89[_0x6f78('0x6c')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0xf2'));}if(!this[_0x6f78('0x62')](_0x7f1d89[_0x6f78('0x58')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x93'));}this[_0x6f78('0xe')][_0x6f78('0xc0')]=!![];this['createSquareDetailsReport'](_0x7f1d89);this[_0x6f78('0x40')](_0x7f1d89[_0x6f78('0x58')],'in');this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0xf3'),_0x7f1d89[_0x6f78('0x58')]));var _0x583d1f=this[_0x6f78('0x6a')][_0x6f78('0x80')](this,_0x7f1d89);if(_0x583d1f){for(var _0x444644 in _0x583d1f){if(_0x583d1f[_0x6f78('0xc2')](_0x444644)&&_[_0x6f78('0x75')](_0x583d1f[_0x444644])){this['channel']['setVariable'](util[_0x6f78('0x51')](_0x6f78('0xf4'),_0x444644[_0x6f78('0xc4')]()),_0x583d1f[_0x444644]);}}if(_[_0x6f78('0x43')](_0x583d1f[_0x6f78('0xf5')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0xf6'));}else{this[_0x6f78('0x40')](_0x583d1f['message'],_0x6f78('0xf7'));return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0xf8'),_0x583d1f[_0x6f78('0xf5')]));}}return this['channel']['error'](_0x7f1d89,'Amazon\x20Lex\x20is\x20unreachable');};AGIVertices[_0x6f78('0x11')][_0x6f78('0xf9')]=function(_0x193879){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0xfa'),_0x193879[_0x6f78('0x37')],_0x193879[_0x6f78('0x84')]));if(!this['isConfigured'](_0x193879[_0x6f78('0x5b')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0xfb'));}var _0x5999b1=_0x6f78('0xfc');var _0x136576=util[_0x6f78('0x51')]('%s/recordings/%s',FILES_PATH,rs[_0x6f78('0xe5')](0x4));var _0x57025f=util[_0x6f78('0x51')](_0x6f78('0xfd'),_0x136576,_0x5999b1);var _0x45d9b7=!![];if(_0x193879[_0x6f78('0xfe')]===_0x6f78('0xff')){_0x45d9b7=![];}var _0x17c771=this['channel'][_0x6f78('0x100')](_0x136576,_0x5999b1,_0x193879[_0x6f78('0x101')],_0x193879[_0x6f78('0x84')],undefined,_0x45d9b7);if(_0x17c771['result']!==-0x1){this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x102'),_0x57025f));var _0x59dc7e=this[_0x6f78('0x6d')][_0x6f78('0x80')](this,_0x193879,_0x57025f);if(_0x59dc7e){for(var _0x563114 in _0x59dc7e){if(_0x59dc7e[_0x6f78('0xc2')](_0x563114)){this[_0x6f78('0xe')]['setVariable'](util[_0x6f78('0x51')](_0x6f78('0x103'),_0x563114['toUpperCase']()),_0x59dc7e[_0x563114]);}}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x104'),JSON[_0x6f78('0xe0')](_0x59dc7e)));}}return _0x17c771;};AGIVertices['prototype'][_0x6f78('0x105')]=function(_0x5b68c6){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x106'),_0x5b68c6[_0x6f78('0x37')]));if(!this['isConfigured'](_0x5b68c6['appid'])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x107'));}if(!this['isConfigured'](_0x5b68c6['appsecret'])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x108'));}var _0x1818cf=_0x6f78('0xfc');var _0x381692=util[_0x6f78('0x51')](_0x6f78('0x109'),FILES_PATH,rs[_0x6f78('0xe5')](0x4));var _0xeda3d1=util[_0x6f78('0x51')](_0x6f78('0xfd'),_0x381692,_0x1818cf);var _0x463db9=!![];if(_0x5b68c6[_0x6f78('0xfe')]===_0x6f78('0xff')){_0x463db9=![];}var _0x18b59a=this[_0x6f78('0xe')][_0x6f78('0x100')](_0x381692,_0x1818cf,_0x5b68c6['intKey'],_0x5b68c6[_0x6f78('0x84')],undefined,_0x463db9);if(_0x18b59a[_0x6f78('0x7c')]!==-0x1){this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x10a'),_0xeda3d1));var _0x50da9d=this[_0x6f78('0x6e')][_0x6f78('0x80')](this,_0x5b68c6,_0xeda3d1);if(_0x50da9d){for(var _0x344640 in _0x50da9d){if(_0x50da9d[_0x6f78('0xc2')](_0x344640)){this[_0x6f78('0xe')]['setVariable'](util[_0x6f78('0x51')](_0x6f78('0x10b'),_0x344640[_0x6f78('0xc4')]()),_0x50da9d[_0x344640]);}}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('TildeASR\x20Result\x20%s',JSON[_0x6f78('0xe0')](_0x50da9d)));}}return _0x18b59a;};AGIVertices['prototype']['gotoc']=function(_0x485735){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x10c'),_0x485735['label']));return this['channel'][_0x6f78('0x10d')](_0x485735[_0x6f78('0x3b')],_0x485735[_0x6f78('0x3c')],_0x485735[_0x6f78('0x3d')]);};AGIVertices[_0x6f78('0x11')][_0x6f78('0x10e')]=function(_0x147599){logger[_0x6f78('0x2e')](util['format'](_0x6f78('0x10f'),_0x147599[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x147599[_0x6f78('0x110')])){return this['channel'][_0x6f78('0x2c')](_0x147599,_0x6f78('0x111'));}try{var _0x197fd9=eval(_0x147599['condition'])?_0x6f78('0x112'):_0x6f78('0x113');this[_0x6f78('0xe')]['noop'](util[_0x6f78('0x51')]('EVAL\x20CONDITION\x20%s\x20%s',_0x147599[_0x6f78('0x110')],_0x197fd9));return{'code':0xc8,'result':_0x197fd9};}catch(_0x4e432d){return{'code':0xc8,'result':_0x6f78('0x113')};}};AGIVertices[_0x6f78('0x11')]['gotoiftime']=function(_0x11cc36){logger['info'](util[_0x6f78('0x51')](_0x6f78('0x114'),_0x11cc36[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x11cc36[_0x6f78('0x115')])){return this['channel'][_0x6f78('0x2c')](_0x11cc36,_0x6f78('0x116'));}var _0x21bbad=this['getIntervals'][_0x6f78('0x80')](this,_0x11cc36[_0x6f78('0x115')]);if(!_0x21bbad){return this[_0x6f78('0xe')]['error'](_0x11cc36,_0x6f78('0x117'));}for(var _0x1607d4=0x0;_0x1607d4<_0x21bbad['length'];_0x1607d4+=0x1){var _0x5ac673=this[_0x6f78('0xe')][_0x6f78('0x12')](util[_0x6f78('0x51')](_0x6f78('0x118'),_0x21bbad[_0x1607d4]));if(_0x5ac673[_0x6f78('0x7c')]===-0x1){return _0x5ac673;}logger['info'](util[_0x6f78('0x51')](_0x6f78('0x119'),_0x21bbad[_0x1607d4],_0x5ac673['extra']));if(_0x5ac673['extra']===_0x6f78('0x112')){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')]('IFTIME\x20%s\x20%s',_0x21bbad[_0x1607d4],_0x6f78('0x112')));this['channel'][_0x6f78('0x8f')](util['format'](_0x6f78('0x119'),_0x21bbad[_0x1607d4],_0x6f78('0x112')));return{'code':0xc8,'result':'true'};}else{logger[_0x6f78('0x2e')](util['format'](_0x6f78('0x119'),_0x21bbad[_0x1607d4],_0x6f78('0x113')));this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('IFTIME\x20%s\x20%s',_0x21bbad[_0x1607d4],_0x6f78('0x113')));}}return{'code':0xc8,'result':_0x6f78('0x113')};};AGIVertices['prototype'][_0x6f78('0x11a')]=function(_0x28f42b){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x11b'),_0x28f42b[_0x6f78('0x37')]));return this[_0x6f78('0xe')][_0x6f78('0x11a')]();};AGIVertices['prototype'][_0x6f78('0x11c')]=function(_0x1980c3){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x11d'),_0x1980c3[_0x6f78('0x37')]));if(!this['isConfigured'](_0x1980c3['key'])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0xfb'));}var _0x1032cc=_0x6f78('0xfc');var _0x57ae5e=util[_0x6f78('0x51')]('%s/recordings/%s',FILES_PATH,rs[_0x6f78('0xe5')](0x4));var _0x41bab4=util['format'](_0x6f78('0xfd'),_0x57ae5e,_0x1032cc);var _0x35ad8b=!![];if(_0x1980c3[_0x6f78('0xfe')]===_0x6f78('0xff')){_0x35ad8b=![];}var _0x2d2de9=this['channel']['recordFile'](_0x57ae5e,_0x1032cc,_0x1980c3['intKey'],_0x1980c3[_0x6f78('0x84')],undefined,_0x35ad8b);if(_0x2d2de9[_0x6f78('0x7c')]!==-0x1){this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format']('ispeech\x20%s\x20file\x20created',_0x41bab4));var _0x314c1d=this[_0x6f78('0x61')]['sync'](this,_0x1980c3,_0x41bab4);if(_0x314c1d){for(var _0x28c661 in _0x314c1d){if(_0x314c1d['hasOwnProperty'](_0x28c661)){this[_0x6f78('0xe')][_0x6f78('0x7e')](util[_0x6f78('0x51')](_0x6f78('0x11e'),_0x28c661['toUpperCase']()),_0x314c1d[_0x28c661]);}}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('IspeechASR\x20Result\x20%s',JSON[_0x6f78('0xe0')](_0x314c1d)));}}return _0x2d2de9;};AGIVertices['prototype'][_0x6f78('0x11f')]=function(_0x3ab729){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x3ab729[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x3ab729['key'])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0xfb'));}if(!this[_0x6f78('0x62')](_0x3ab729[_0x6f78('0x58')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x93'));}this[_0x6f78('0xe')]['noop'](util[_0x6f78('0x51')](_0x6f78('0x120'),_0x3ab729[_0x6f78('0x58')]));var _0xeddb71=this[_0x6f78('0x5e')]['sync'](this,_0x3ab729);if(_0xeddb71){this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x121'),_0xeddb71));var _0x570b7a=this[_0x6f78('0xe')]['streamFile'](_0xeddb71,_0x3ab729[_0x6f78('0x101')]);try{fs[_0x6f78('0x122')](_0xeddb71+_0x6f78('0xd2'));}catch(_0x4309d5){logger['error'](_0x4309d5);}return _0x570b7a;}return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x3ab729,'ispeech\x20TTS\x20is\x20unreachable');};AGIVertices[_0x6f78('0x11')][_0x6f78('0x123')]=function(_0x60664){logger[_0x6f78('0x2e')](util['format'](_0x6f78('0x124'),_0x60664[_0x6f78('0x37')]));if(!this['isConfigured'](_0x60664[_0x6f78('0x125')])){return this[_0x6f78('0xe')]['error'](_0x60664,_0x6f78('0x126'));}logger['info'](util[_0x6f78('0x51')](_0x6f78('0x127'),this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x60664['findBy']));var _0x56e7e8=this[_0x6f78('0x53')][_0x6f78('0x80')](this,_0x60664[_0x6f78('0x125')]);if(_0x56e7e8){logger['info'](util['format'](_0x6f78('0x128'),this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x60664[_0x6f78('0x125')]));this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('AGENT\x20%s\x20FOUND\x20BY',this['channel']['callerid'],_0x60664[_0x6f78('0x125')]));return{'code':0xc8,'result':'success'};}else{logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x129'),this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x60664[_0x6f78('0x125')]));this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x129'),this['channel'][_0x6f78('0x3a')],_0x60664[_0x6f78('0x125')]));return{'code':0xc8,'result':_0x6f78('0x12a')};}};AGIVertices[_0x6f78('0x11')][_0x6f78('0x12b')]=function(_0x5cebe5){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x12c'),_0x5cebe5[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x5cebe5['findBy'])){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x5cebe5,_0x6f78('0x126'));}logger['info'](util[_0x6f78('0x51')](_0x6f78('0x127'),this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x5cebe5[_0x6f78('0x125')]));var _0x6f8534=this[_0x6f78('0x50')][_0x6f78('0x80')](this,_0x5cebe5[_0x6f78('0x125')]);if(_0x6f8534){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x128'),this[_0x6f78('0xe')]['callerid'],_0x5cebe5[_0x6f78('0x125')]));this['channel'][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x128'),this['channel']['callerid'],_0x5cebe5[_0x6f78('0x125')]));return{'code':0xc8,'result':_0x6f78('0x12d')};}else{logger[_0x6f78('0x2e')](util['format'](_0x6f78('0x129'),this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x5cebe5[_0x6f78('0x125')]));this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x5cebe5['findBy']));return{'code':0xc8,'result':_0x6f78('0x12a')};}};AGIVertices[_0x6f78('0x11')][_0x6f78('0x12e')]=function(_0x52dec9){logger[_0x6f78('0x2e')](util['format'](_0x6f78('0x12f'),_0x52dec9[_0x6f78('0x37')]));if(!this['isConfigured'](_0x52dec9[_0x6f78('0x130')])){return this['channel']['error'](_0x52dec9,'no\x20operation\x20configured');}this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x131'),_0x52dec9[_0x6f78('0x130')]));var _0x4bcaf6=eval(_0x52dec9[_0x6f78('0x130')]);if(!this['isConfigured'](_0x52dec9[_0x6f78('0xaf')])){return this['channel']['noop'](_0x6f78('0xb0'));}var _0x53bf0d=this['getVariable'][_0x6f78('0x80')](this,_0x52dec9['variable_id']);if(!_0x53bf0d){return this['channel'][_0x6f78('0x2c')](_0x52dec9,_0x6f78('0xe3'));}if(_[_0x6f78('0x132')](_0x4bcaf6)){var _0x1c4118=this;_0x4bcaf6[_0x6f78('0xb1')](function(_0x4527d9,_0x2d8728){_0x1c4118[_0x6f78('0xe')][_0x6f78('0x7e')](util[_0x6f78('0x51')]('%s[%s]',_0x53bf0d,_0x2d8728),_0x4527d9);});return this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x133'),_0x53bf0d));}else{return this[_0x6f78('0xe')][_0x6f78('0x7e')](_0x53bf0d,_0x4bcaf6);}};AGIVertices[_0x6f78('0x11')]['menu']=function(_0x4527d4){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x134'),_0x4527d4['label']));if(_0x4527d4[_0x6f78('0xdc')]===0x0){return this[_0x6f78('0x7f')](_0x4527d4);}_0x4527d4['retry']-=0x1;if(!this[_0x6f78('0x62')](_0x4527d4[_0x6f78('0xdd')])){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x4527d4,_0x6f78('0xde'));}var _0x22e600=this['getSound']['sync'](this,_0x4527d4['file_id']);if(!_0x22e600){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x4527d4,'no\x20file\x20audio\x20found');}var _0x42b1e4=this['channel'][_0x6f78('0x135')](_0x22e600,_0x4527d4[_0x6f78('0xdf')],_0x4527d4[_0x6f78('0x136')]);var _0x29d2e2=_0x42b1e4[_0x6f78('0x7c')];if(_0x42b1e4[_0x6f78('0x7c')]===-0x1){this['createSquareDetailsReport']['sync'](this,_0x4527d4,'-1');return _0x42b1e4;}else if(_0x42b1e4['extra']===_0x6f78('0x84')){_0x42b1e4['result']=_0x42b1e4[_0x6f78('0x7c')][_0x6f78('0x78')]>0x0?_0x42b1e4[_0x6f78('0x7c')]:'t';}else if(_[_0x6f78('0x42')](_0x42b1e4[_0x6f78('0x7c')])){_0x42b1e4[_0x6f78('0x7c')]='#';_0x29d2e2='#';}if(!this['isConfigured'](_0x4527d4['variable_id'])){this['channel']['noop']('no\x20variable\x20selected\x20for\x20the\x20result');}else{var _0x5023c9=this[_0x6f78('0x12')]['sync'](this,_0x4527d4['variable_id']);if(!_0x5023c9){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x4527d4,_0x6f78('0xe3'));}this[_0x6f78('0xe')][_0x6f78('0x7e')](_0x5023c9,_0x29d2e2);}this[_0x6f78('0x35')][_0x6f78('0x80')](this,_0x4527d4,_0x29d2e2);return _0x42b1e4;};AGIVertices[_0x6f78('0x11')]['noop']=function(_0x3799f9){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x137'),_0x3799f9[_0x6f78('0x37')]));return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x3799f9['output']||_0x3799f9[_0x6f78('0x37')]);};AGIVertices[_0x6f78('0x11')][_0x6f78('0x138')]=function(_0x38a426){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x38a426[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x38a426[_0x6f78('0x125')])){return this['channel'][_0x6f78('0x2c')](_0x38a426,_0x6f78('0x126'));}logger['info'](util[_0x6f78('0x51')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x6f78('0xe')]['callerid'],_0x38a426[_0x6f78('0x125')]));var _0x35e58b=this[_0x6f78('0x4c')][_0x6f78('0x80')](this,_0x38a426[_0x6f78('0x139')]);var _0x25ebbb=this[_0x6f78('0x4d')]['sync'](this,_0x38a426[_0x6f78('0x125')],_0x35e58b);if(_0x25ebbb){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x128'),this[_0x6f78('0xe')]['callerid'],_0x38a426['findBy']));this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x128'),this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x38a426[_0x6f78('0x125')]));return{'code':0xc8,'result':_0x6f78('0x12d')};}else{logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x129'),this['channel'][_0x6f78('0x3a')],_0x38a426['findBy']));this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x128'),this['channel'][_0x6f78('0x3a')],_0x38a426['findBy']));return{'code':0xc8,'result':_0x6f78('0x12a')};}};AGIVertices[_0x6f78('0x11')]['playback']=function(_0x4a4e5d){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x13a'),_0x4a4e5d[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x4a4e5d[_0x6f78('0xdd')])){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x4a4e5d,_0x6f78('0xde'));}var _0x26184a=this[_0x6f78('0x20')]['sync'](this,_0x4a4e5d[_0x6f78('0xdd')]);if(!_0x26184a){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x4a4e5d,_0x6f78('0x13b'));}var _0x170f26=this[_0x6f78('0xe')][_0x6f78('0x55')](_0x6f78('0x13c'),[_0x26184a,_0x4a4e5d['opts']]);if(_0x170f26[_0x6f78('0x7c')]===-0x1){return _0x170f26;}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x90'),_0x6f78('0x13c'),_0x26184a));};AGIVertices['prototype'][_0x6f78('0x13d')]=function(_0x42c13c){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x13e'),_0x42c13c[_0x6f78('0x37')]));if(!this['isConfigured'](_0x42c13c[_0x6f78('0x13f')])){return this[_0x6f78('0xe')]['error'](_0x42c13c,'no\x20queue\x20selected');}var _0x4f116c='';var _0x5c5658=parseInt(_0x42c13c[_0x6f78('0x13f')],0xa);if(isNaN(_0x5c5658)){_0x4f116c=_0x42c13c[_0x6f78('0x13f')];}else{_0x4f116c=this[_0x6f78('0x16')]['sync'](this,_0x42c13c[_0x6f78('0x13f')]);if(!_0x4f116c){return this[_0x6f78('0xe')]['error'](_0x42c13c,_0x6f78('0x140'));}}var _0x5d943d='';if(this['isConfigured'](_0x42c13c[_0x6f78('0xdd')])){var _0x55da45=this[_0x6f78('0x20')]['sync'](this,_0x42c13c[_0x6f78('0xdd')]);if(_0x55da45){_0x5d943d=_0x55da45;}}this['createSquareDetailsReport'][_0x6f78('0x80')](this,_0x42c13c,_0x4f116c);if(_0x42c13c[_0x6f78('0xbc')][_0x6f78('0x141')]('x')<0x0){_0x42c13c[_0x6f78('0xbc')]+='x';}if(_0x42c13c[_0x6f78('0xbc')]['indexOf']('X')<0x0){_0x42c13c[_0x6f78('0xbc')]+='X';}this[_0x6f78('0xe')][_0x6f78('0x7e')](_0x6f78('0x142'),_0x4f116c?_0x4f116c[_0x6f78('0x143')]():'');var _0x255159=this['channel'][_0x6f78('0x55')]('QUEUE',[_0x4f116c,_0x42c13c[_0x6f78('0xbc')],_0x42c13c['url'],_0x5d943d,_0x42c13c[_0x6f78('0x84')],_0x42c13c[_0x6f78('0x8')],_0x42c13c[_0x6f78('0x144')],_0x42c13c[_0x6f78('0x145')],'',_0x42c13c[_0x6f78('0x146')]]);if(_0x255159[_0x6f78('0x7c')]===-0x1){return _0x255159;}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x90'),_0x6f78('0x147'),_0x4f116c));};AGIVertices[_0x6f78('0x11')]['record']=function(_0x35ba47){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x148'),_0x35ba47['label']));var _0x502ce9=_0x35ba47['recordingFormat']||_0x6f78('0xfc');var _0x456634=util['format'](_0x6f78('0x149'),this[_0x6f78('0xe')][_0x6f78('0x36')],rs[_0x6f78('0xe5')](0x5));var _0x59d1e4=util[_0x6f78('0x51')]('%s/recordings/%s.%s',FILES_PATH,_0x456634,_0x502ce9);var _0x48a217=util[_0x6f78('0x51')]('%s/recordings/%s',FILES_PATH,_0x456634);this[_0x6f78('0x14a')][_0x6f78('0x80')](this,_0x35ba47,_0x456634,_0x59d1e4);this[_0x6f78('0xe')][_0x6f78('0x7e')](_0x6f78('0x14b'),_0x456634);logger[_0x6f78('0x2e')](_0x6f78('0x14c'),_0x48a217,_0x502ce9,_0x35ba47[_0x6f78('0x14d')],_0x35ba47[_0x6f78('0x84')]);return this['channel']['recordFile'](_0x48a217,_0x502ce9,_0x35ba47[_0x6f78('0x14d')],_0x35ba47['timeout'],undefined,!![]);};AGIVertices[_0x6f78('0x11')][_0x6f78('0x14e')]=function(_0x132392){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x14f'),_0x132392[_0x6f78('0x37')]));return this[_0x6f78('0xe')][_0x6f78('0x150')](_0x132392['digits'][_0x6f78('0xad')](/\s+/g,''),_0x132392['escape_digits']);};AGIVertices[_0x6f78('0x11')][_0x6f78('0x151')]=function(_0x264dba){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x152'),_0x264dba[_0x6f78('0x37')]));return this[_0x6f78('0xe')][_0x6f78('0x153')](_0x264dba[_0x6f78('0x154')]['replace'](/\s+/g,''),_0x264dba['escape_digits']);};AGIVertices[_0x6f78('0x11')]['sayphonetic']=function(_0x2a8b7d){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x155'),_0x2a8b7d[_0x6f78('0x37')]));return this[_0x6f78('0xe')]['sayPhonetic'](_0x2a8b7d[_0x6f78('0x58')],_0x2a8b7d[_0x6f78('0x14d')]);};AGIVertices[_0x6f78('0x11')][_0x6f78('0x156')]=function(_0x22ef30){logger['info'](util[_0x6f78('0x51')](_0x6f78('0x157'),_0x22ef30[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x22ef30[_0x6f78('0x158')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')]('no\x20mail\x20account\x20configured');}var _0x3b6523=this[_0x6f78('0x159')][_0x6f78('0x80')](this,_0x22ef30[_0x6f78('0x158')]);if(!_0x3b6523||!_0x3b6523[_0x6f78('0x15a')]){return this['channel'][_0x6f78('0x2c')](_0x22ef30,'no\x20mail\x20account\x20found');}var _0x256234={'from':util[_0x6f78('0x51')](_0x6f78('0x15b'),_0x3b6523[_0x6f78('0x14')],_0x3b6523[_0x6f78('0x15c')]||_0x3b6523[_0x6f78('0x15a')]['user']),'to':_0x22ef30['to']||'','cc':_0x22ef30['cc']||'','bcc':_0x22ef30[_0x6f78('0x15d')]||'','subject':_0x22ef30[_0x6f78('0x15e')],'html':_0x22ef30[_0x6f78('0x58')],'text':_0x22ef30[_0x6f78('0x58')]};var _0x1e53cc={'tls':{'rejectUnauthorized':![]}};if(_0x3b6523[_0x6f78('0x15a')][_0x6f78('0x15f')]){_0x1e53cc[_0x6f78('0x15f')]=_0x3b6523['Smtp'][_0x6f78('0x15f')];}else{_0x1e53cc[_0x6f78('0x160')]=_0x3b6523['Smtp'][_0x6f78('0x160')];_0x1e53cc[_0x6f78('0x161')]=_0x3b6523['Smtp'][_0x6f78('0x161')];_0x1e53cc['secure']=_0x3b6523[_0x6f78('0x15a')][_0x6f78('0x162')];}if(_0x3b6523[_0x6f78('0x15a')]['authentication']){_0x1e53cc[_0x6f78('0x163')]={'user':_0x3b6523['Smtp'][_0x6f78('0x164')],'pass':_0x3b6523['Smtp'][_0x6f78('0x165')]};}if(this[_0x6f78('0x62')](_0x22ef30[_0x6f78('0x166')])){}logger['debug']('sendMail\x20message',JSON[_0x6f78('0xe0')](_0x256234));this[_0x6f78('0x35')][_0x6f78('0x80')](this,_0x22ef30,_0x22ef30[_0x6f78('0x158')]);this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x167'),_0x3b6523[_0x6f78('0x14')]));this[_0x6f78('0x24')][_0x6f78('0x80')](this,_0x1e53cc,_0x256234);return this['channel'][_0x6f78('0x8f')](_0x6f78('0x168'));};AGIVertices[_0x6f78('0x11')][_0x6f78('0x169')]=function(_0x9b5df8){logger['info'](util[_0x6f78('0x51')](_0x6f78('0x16a'),_0x9b5df8[_0x6f78('0x37')]));return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x16b'));};AGIVertices['prototype'][_0x6f78('0x16c')]=function(_0x5b0b6c){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x16d'),_0x5b0b6c[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x5b0b6c['sms_account_id'])){return this[_0x6f78('0xe')]['noop']('no\x20sms\x20account\x20configured');}var _0x5dfba0=this[_0x6f78('0x33')][_0x6f78('0x80')](this,_0x5b0b6c[_0x6f78('0x16e')]);if(!_0x5dfba0){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x5b0b6c,'no\x20sms\x20account\x20found');}var _0x2316fa={'body':_0x5b0b6c[_0x6f78('0x16f')],'phone':_0x5b0b6c['to']||'','SmsAccountId':_0x5dfba0['id']};logger[_0x6f78('0xb4')](_0x6f78('0x170'),JSON[_0x6f78('0xe0')](_0x2316fa));this['createSquareDetailsReport'][_0x6f78('0x80')](this,_0x5b0b6c,_0x5b0b6c[_0x6f78('0x16e')]);this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('Trying\x20SendSMS\x20with\x20account\x20%s',_0x5dfba0['name']));this['createSmsMessage'][_0x6f78('0x80')](this,_0x2316fa);return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x171'));};AGIVertices[_0x6f78('0x11')][_0x6f78('0x172')]=function(_0x1c364b){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x173'),_0x1c364b[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x1c364b['variable_id'])){return this['channel']['error'](_0x1c364b,_0x6f78('0x174'));}var _0x357481=this[_0x6f78('0x12')][_0x6f78('0x80')](this,_0x1c364b['variable_id']);if(!_0x357481){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x1c364b,'no\x20variable\x20found');}return this[_0x6f78('0xe')][_0x6f78('0x7e')](_0x357481,_0x1c364b[_0x6f78('0x175')]);};AGIVertices['prototype'][_0x6f78('0x176')]=function(_0x3561fe){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x177'),_0x3561fe[_0x6f78('0x37')]));this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x178'));if(_0x3561fe['answer']===_0x6f78('0x179')){this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x17a'));return this[_0x6f78('0xe')][_0x6f78('0x87')]();}return this[_0x6f78('0xe')][_0x6f78('0x8f')]('Skipped\x20Answer');};AGIVertices[_0x6f78('0x11')][_0x6f78('0x17b')]=function(_0x190340){logger['info'](util['format']('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x190340[_0x6f78('0x37')]));if(!this['isConfigured'](_0x190340[_0x6f78('0x17c')])){return this['channel'][_0x6f78('0x2c')](_0x190340,_0x6f78('0x17d'));}var _0x22ebe1=this[_0x6f78('0x17e')][_0x6f78('0x80')](this,_0x190340['project_id']);if(!this[_0x6f78('0x62')](_0x22ebe1)){return this[_0x6f78('0xe')]['error'](_0x190340,util[_0x6f78('0x51')](_0x6f78('0x17f'),_0x190340[_0x6f78('0x17c')]));}if(_0x22ebe1===this[_0x6f78('0xe')][_0x6f78('0x39')]){return this['channel'][_0x6f78('0x2c')](_0x190340,_0x6f78('0x180'));}this[_0x6f78('0x35')][_0x6f78('0x80')](this,_0x190340,_0x22ebe1);var _0x648bb=this[_0x6f78('0xe')][_0x6f78('0x55')](_0x6f78('0x181'),util['format'](_0x6f78('0x182'),config[_0x6f78('0x8')][_0x6f78('0x160')]||_0x6f78('0x183'),_0x22ebe1,this[_0x6f78('0xe')]['arg_1']));if(_0x648bb[_0x6f78('0x7c')]===-0x1){return _0x648bb;}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util[_0x6f78('0x51')]('Executed\x20command\x20%s\x20%s',_0x6f78('0x181'),_0x22ebe1));};AGIVertices[_0x6f78('0x11')][_0x6f78('0x184')]=function(_0xd8b0a0){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x185'),_0xd8b0a0['label']));var _0x190de6=this[_0x6f78('0x54')]['sync'](this,_0xd8b0a0['command']);this[_0x6f78('0x35')][_0x6f78('0x80')](this,_0xd8b0a0,_0xd8b0a0['command']);if(this['isConfigured'](_0xd8b0a0[_0x6f78('0xaf')])){var _0x25d80b=this['getVariable']['sync'](this,_0xd8b0a0[_0x6f78('0xaf')]);if(_0x25d80b){this[_0x6f78('0xe')][_0x6f78('0x7e')](_0x25d80b,_0x190de6);return this[_0x6f78('0xe')]['noop'](util[_0x6f78('0x51')](_0x6f78('0x186'),_0xd8b0a0['command'],_0x25d80b));}}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x187'),_0xd8b0a0[_0x6f78('0x188')]));};AGIVertices['prototype'][_0x6f78('0x189')]=function(_0x465c88){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x18a'),_0x465c88[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x465c88[_0x6f78('0x58')])){return this[_0x6f78('0xe')][_0x6f78('0x8f')](_0x6f78('0x93'));}this['channel'][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x18b'),_0x465c88['text']));var _0x24ed8e=this[_0x6f78('0x57')]['sync'](this,_0x465c88);if(_0x24ed8e){this['channel'][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x18c'),_0x24ed8e));var _0x5c4943=this['channel'][_0x6f78('0xd1')](_0x24ed8e);try{fs[_0x6f78('0x122')](_0x24ed8e+'.wav');}catch(_0x200025){logger[_0x6f78('0x2c')](_0x200025);}return _0x5c4943;}return this['channel'][_0x6f78('0x2c')](_0x465c88,_0x6f78('0x18d'));};AGIVertices['prototype'][_0x6f78('0x18e')]=function(_0x40e0fd){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x18f'),_0x40e0fd[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x40e0fd[_0x6f78('0x125')])){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x40e0fd,_0x6f78('0x126'));}logger['info'](util['format'](_0x6f78('0x127'),this['channel'][_0x6f78('0x3a')],_0x40e0fd['findBy']));var _0x5ca631=this[_0x6f78('0x4f')][_0x6f78('0x80')](this,_0x40e0fd[_0x6f78('0x125')]);if(_0x5ca631){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x128'),this['channel']['callerid'],_0x40e0fd[_0x6f78('0x125')]));this['channel'][_0x6f78('0x8f')](util[_0x6f78('0x51')](_0x6f78('0x128'),this['channel'][_0x6f78('0x3a')],_0x40e0fd[_0x6f78('0x125')]));return{'code':0xc8,'result':'success'};}else{logger[_0x6f78('0x2e')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x40e0fd[_0x6f78('0x125')]));this[_0x6f78('0xe')]['noop'](util[_0x6f78('0x51')](_0x6f78('0x129'),this[_0x6f78('0xe')][_0x6f78('0x3a')],_0x40e0fd[_0x6f78('0x125')]));return{'code':0xc8,'result':_0x6f78('0x12a')};}};AGIVertices[_0x6f78('0x11')][_0x6f78('0x190')]=function(_0x1107b7){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')](_0x6f78('0x191'),_0x1107b7['label']));var _0x4b7ce9=this['channel'][_0x6f78('0x55')](_0x6f78('0x192'),[_0x1107b7[_0x6f78('0x193')],_0x1107b7[_0x6f78('0x91')]]);if(_0x4b7ce9['result']===-0x1){return _0x4b7ce9;}return this[_0x6f78('0xe')][_0x6f78('0x8f')](util['format'](_0x6f78('0x90'),_0x6f78('0x192'),_0x1107b7[_0x6f78('0x193')]));};AGIVertices[_0x6f78('0x11')][_0x6f78('0x194')]=function(_0x224f48){logger[_0x6f78('0x2e')](util[_0x6f78('0x51')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x224f48[_0x6f78('0x37')]));if(!this[_0x6f78('0x62')](_0x224f48['variable_id'])){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x224f48,_0x6f78('0x174'));}var _0x6dce03=this[_0x6f78('0x12')]['sync'](this,_0x224f48[_0x6f78('0xaf')]);if(!_0x6dce03){return this[_0x6f78('0xe')][_0x6f78('0x2c')](_0x224f48,'no\x20variable\x20found');}var _0xec1554=this[_0x6f78('0xe')][_0x6f78('0x12')](_0x6dce03);return{'code':0xc8,'result':_0xec1554['extra']?_0xec1554['extra']:'-'};};String[_0x6f78('0x11')][_0x6f78('0x195')]=function(_0x2f3714,_0x151ff5){return this[_0x6f78('0x77')](_0x2f3714)[_0x6f78('0x196')](_0x151ff5);};module[_0x6f78('0x197')]=AGIVertices;