Built motion from commit ab065936.|2.0.52
[motion2.git] / server / services / ami / trigger / integration / index.js
1 var _0xbfc6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x2E\x2F\x7A\x6F\x68\x6F","\x2E\x2F\x64\x65\x73\x6B","\x7A\x65\x6E\x64\x65\x73\x6B","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x73\x75\x67\x61\x72\x63\x72\x6D","\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x7A\x6F\x68\x6F","\x64\x65\x73\x6B","\x65\x78\x65\x63","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x64\x61\x74\x61\x31","\x69\x6E\x63\x6C\x75\x64\x65\x73","","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x66\x69\x6E\x64","\x71\x75\x65\x75\x65","\x72\x6F\x75\x74\x65\x49\x64","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x45\x56\x45\x4E\x54\x20\x55\x4E\x4B\x4E\x4F\x57\x4E","\x6C\x6F\x67","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x5B\x45\x58\x45\x43\x5D","\x25\x73\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x23\x25\x73\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x66\x6F\x72\x6D\x61\x74","\x65\x72\x72\x6F\x72","\x25\x73\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x23\x25\x73\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64"];_0xbfc6[0];var _=require(_0xbfc6[1]);var util=require(_0xbfc6[2]);var zendesk=require(_0xbfc6[3]);var salesforce=require(_0xbfc6[4]);var sugarcrm=require(_0xbfc6[5]);var freshdesk=require(_0xbfc6[6]);var zoho=require(_0xbfc6[7]);var desk=require(_0xbfc6[8]);var integrations=[_0xbfc6[9],_0xbfc6[10],_0xbfc6[11],_0xbfc6[12],_0xbfc6[13],_0xbfc6[14]];exports[_0xbfc6[15]]= function(_0xc0f2xa,_0xc0f2xb,_0xc0f2xc,_0xc0f2xd,_0xc0f2xe,_0xc0f2xf){if(_0xc0f2xc){if(_[_0xbfc6[18]](integrations,_0xc0f2xa[_0xbfc6[17]][_0xbfc6[16]]())){try{var _0xc0f2x10=null;var _0xc0f2x11=_0xbfc6[19];var _0xc0f2x12=_0xc0f2xc[_0xc0f2xa[_0xbfc6[17]][_0xbfc6[16]]()];if(_0xc0f2x12){var _0xc0f2x13=_0xc0f2x12[_0xc0f2xa[_0xbfc6[20]]];if(_0xc0f2x13){var _0xc0f2x14=_[_0xbfc6[22]](_0xc0f2x13.Configurations,{id:parseInt(_0xc0f2xa[_0xbfc6[21]],10)});if(_0xc0f2x14){if(_0xc0f2xd){if(_0xc0f2xe&& _0xc0f2xb[_0xbfc6[23]]){_0xc0f2x11= _0xbfc6[23]}else {if(_0xc0f2xb[_0xbfc6[24]]){_0xc0f2x11= _0xbfc6[25]}else {console[_0xbfc6[27]](_0xbfc6[26],_0xc0f2xb)}}}else {_0xc0f2x11= _0xbfc6[28]};switch(_0xc0f2xa[_0xbfc6[17]][_0xbfc6[16]]()){case _0xbfc6[9]:zendesk[_0xc0f2x11](_0xc0f2xa,_0xc0f2xb,_0xc0f2x14,_0xc0f2xd,_0xc0f2xe,_0xc0f2x13,_0xc0f2xf);break;case _0xbfc6[10]:salesforce[_0xc0f2x11](_0xc0f2xa,_0xc0f2xb,_0xc0f2x14,_0xc0f2xd,_0xc0f2xe,_0xc0f2x13,_0xc0f2xf);break;case _0xbfc6[11]:sugarcrm[_0xc0f2x11](_0xc0f2xa,_0xc0f2xb,_0xc0f2x14,_0xc0f2xd,_0xc0f2xe,_0xc0f2x13,_0xc0f2xf);break;case _0xbfc6[12]:freshdesk[_0xc0f2x11](_0xc0f2xa,_0xc0f2xb,_0xc0f2x14,_0xc0f2xd,_0xc0f2xe,_0xc0f2x13,_0xc0f2xf);break;case _0xbfc6[13]:zoho[_0xc0f2x11](_0xc0f2xa,_0xc0f2xb,_0xc0f2x14,_0xc0f2xd,_0xc0f2xe,_0xc0f2x13,_0xc0f2xf);break;case _0xbfc6[14]:desk[_0xc0f2x11](_0xc0f2xa,_0xc0f2xb,_0xc0f2x14,_0xc0f2xd,_0xc0f2xe,_0xc0f2x13,_0xc0f2xf);break;default:console[_0xbfc6[27]](_0xbfc6[29])}}else {_0xc0f2x10= require(_0xbfc6[30])(_0xc0f2xa[_0xbfc6[17]][_0xbfc6[16]]());_0xc0f2x10[_0xbfc6[34]](_0xbfc6[31],util[_0xbfc6[33]](_0xbfc6[32],_0xc0f2xa[_0xbfc6[17]][_0xbfc6[16]](),_0xc0f2xa[_0xbfc6[21]]))}}else {_0xc0f2x10= require(_0xbfc6[30])(_0xc0f2xa[_0xbfc6[17]][_0xbfc6[16]]());_0xc0f2x10[_0xbfc6[34]](_0xbfc6[31],util[_0xbfc6[33]](_0xbfc6[35],_0xc0f2xa[_0xbfc6[17]][_0xbfc6[16]](),_0xc0f2xa[_0xbfc6[20]]))}}else {}}catch(e){console[_0xbfc6[34]](e)}}}}