Built motion from commit 712a57186.|1.0.37
[motion.git] / server / config / integrations / index.js
index 36f785c..eb6f6c4 100644 (file)
@@ -1 +1 @@
-var _0xd7d0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x61\x72\x69\x61\x62\x6C\x65","\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\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x54\x72\x69\x67\x67\x65\x72\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x61\x63\x74\x69\x6F\x6E","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\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","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A\x20","\x65\x72\x72\x6F\x72","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x25\x73\x20\x6E\x6F\x74\x20\x61\x63\x74\x69\x76\x65\x20\x69\x6E\x20\x79\x6F\x75\x72\x20\x73\x65\x72\x76\x65\x72\x21","\x66\x6F\x72\x6D\x61\x74","\x77\x61\x72\x6E","\x73\x74\x61\x74\x65","\x6D\x61\x70","\x69\x6E\x64\x65\x78\x4F\x66","\x65\x78\x70\x6F\x72\x74\x73"];_0xd7d0[0];var _=require(_0xd7d0[1]);var util=require(_0xd7d0[2]);var logger=require(_0xd7d0[4])(_0xd7d0[3]);var IntegrationModel=require(_0xd7d0[6])[_0xd7d0[5]];var Variable=require(_0xd7d0[6])[_0xd7d0[7]];var Zendesk=require(_0xd7d0[8]);var Salesforce=require(_0xd7d0[9]);var Sugarcrm=require(_0xd7d0[10]);var Freshdesk=require(_0xd7d0[11]);var Motionbar=require(_0xd7d0[12]);function Integration(){logger[_0xd7d0[14]](_0xd7d0[13]);var _0x8b42xc= new Zendesk();var _0x8b42xd= new Salesforce();var _0x8b42xe= new Sugarcrm();var _0x8b42xf= new Freshdesk();var _0x8b42x10= new Motionbar();this[_0xd7d0[15]]= function(_0x8b42x11,_0x8b42x12,_0x8b42x13,_0x8b42x14,_0x8b42x15,_0x8b42x16,_0x8b42x17){if(_0x8b42x11[_0xd7d0[16]]=== _0xd7d0[17]){_0x8b42x10[_0xd7d0[18]](_0x8b42x11,_0x8b42x13,_0x8b42x12,_0x8b42x15,_0x8b42x16)}else {if(integrationIsActive(_0x8b42x11[_0xd7d0[19]],_0x8b42x17)){switch(_0x8b42x11[_0xd7d0[19]]){case _0xd7d0[22]:_0x8b42xc[_0xd7d0[18]](_0x8b42x11[_0xd7d0[20]],_0x8b42x11[_0xd7d0[21]],_0x8b42x13,_0x8b42x14,_0x8b42x12,_0x8b42x15,_0x8b42x16);break;case _0xd7d0[23]:_0x8b42xd[_0xd7d0[18]](_0x8b42x11[_0xd7d0[20]],_0x8b42x11[_0xd7d0[21]],_0x8b42x13,_0x8b42x14,_0x8b42x12,_0x8b42x15,_0x8b42x16);break;case _0xd7d0[24]:_0x8b42xe[_0xd7d0[18]](_0x8b42x11[_0xd7d0[20]],_0x8b42x11[_0xd7d0[21]],_0x8b42x13,_0x8b42x14,_0x8b42x12,_0x8b42x15,_0x8b42x16);break;case _0xd7d0[25]:_0x8b42xf[_0xd7d0[18]](_0x8b42x11[_0xd7d0[20]],_0x8b42x11[_0xd7d0[21]],_0x8b42x13,_0x8b42x14,_0x8b42x12,_0x8b42x15,_0x8b42x16);break;default:logger[_0xd7d0[27]](_0xd7d0[26],_0x8b42x11[_0xd7d0[19]])}}else {logger[_0xd7d0[30]](util[_0xd7d0[29]](_0xd7d0[28],_0x8b42x11[_0xd7d0[19]]))}}}}function integrationIsActive(_0x8b42x19,_0x8b42x1a){var _0x8b42x1b=_[_0xd7d0[32]](_0x8b42x1a,_0xd7d0[31]);if(_[_0xd7d0[33]](_0x8b42x1b,_0x8b42x19)>= 0){return true};return false}module[_0xd7d0[34]]= Integration
\ No newline at end of file
+var _0x9299=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x61\x72\x69\x61\x62\x6C\x65","\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\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x54\x72\x69\x67\x67\x65\x72\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x61\x63\x74\x69\x6F\x6E","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\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","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A\x20","\x65\x72\x72\x6F\x72","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x25\x73\x20\x6E\x6F\x74\x20\x61\x63\x74\x69\x76\x65\x20\x69\x6E\x20\x79\x6F\x75\x72\x20\x73\x65\x72\x76\x65\x72\x21","\x66\x6F\x72\x6D\x61\x74","\x77\x61\x72\x6E","\x73\x74\x61\x74\x65","\x6D\x61\x70","\x69\x6E\x64\x65\x78\x4F\x66","\x65\x78\x70\x6F\x72\x74\x73"];_0x9299[0];var _=require(_0x9299[1]);var util=require(_0x9299[2]);var logger=require(_0x9299[4])(_0x9299[3]);var IntegrationModel=require(_0x9299[6])[_0x9299[5]];var Variable=require(_0x9299[6])[_0x9299[7]];var Zendesk=require(_0x9299[8]);var Salesforce=require(_0x9299[9]);var Sugarcrm=require(_0x9299[10]);var Freshdesk=require(_0x9299[11]);var Motionbar=require(_0x9299[12]);function Integration(){logger[_0x9299[14]](_0x9299[13]);var _0x7ad8xc= new Zendesk();var _0x7ad8xd= new Salesforce();var _0x7ad8xe= new Sugarcrm();var _0x7ad8xf= new Freshdesk();var _0x7ad8x10= new Motionbar();this[_0x9299[15]]= function(_0x7ad8x11,_0x7ad8x12,_0x7ad8x13,_0x7ad8x14,_0x7ad8x15,_0x7ad8x16,_0x7ad8x17){if(_0x7ad8x11[_0x9299[16]]=== _0x9299[17]){_0x7ad8x10[_0x9299[18]](_0x7ad8x11,_0x7ad8x13,_0x7ad8x12,_0x7ad8x15,_0x7ad8x16)}else {if(integrationIsActive(_0x7ad8x11[_0x9299[19]],_0x7ad8x17)){switch(_0x7ad8x11[_0x9299[19]]){case _0x9299[22]:_0x7ad8xc[_0x9299[18]](_0x7ad8x11[_0x9299[20]],_0x7ad8x11[_0x9299[21]],_0x7ad8x13,_0x7ad8x14,_0x7ad8x12,_0x7ad8x15,_0x7ad8x16);break;case _0x9299[23]:_0x7ad8xd[_0x9299[18]](_0x7ad8x11[_0x9299[20]],_0x7ad8x11[_0x9299[21]],_0x7ad8x13,_0x7ad8x14,_0x7ad8x12,_0x7ad8x15,_0x7ad8x16);break;case _0x9299[24]:_0x7ad8xe[_0x9299[18]](_0x7ad8x11[_0x9299[20]],_0x7ad8x11[_0x9299[21]],_0x7ad8x13,_0x7ad8x14,_0x7ad8x12,_0x7ad8x15,_0x7ad8x16);break;case _0x9299[25]:_0x7ad8xf[_0x9299[18]](_0x7ad8x11[_0x9299[20]],_0x7ad8x11[_0x9299[21]],_0x7ad8x13,_0x7ad8x14,_0x7ad8x12,_0x7ad8x15,_0x7ad8x16);break;default:logger[_0x9299[27]](_0x9299[26],_0x7ad8x11[_0x9299[19]])}}else {logger[_0x9299[30]](util[_0x9299[29]](_0x9299[28],_0x7ad8x11[_0x9299[19]]))}}}}function integrationIsActive(_0x7ad8x19,_0x7ad8x1a){var _0x7ad8x1b=_[_0x9299[32]](_0x7ad8x1a,_0x9299[31]);if(_[_0x9299[33]](_0x7ad8x1b,_0x7ad8x19)>= 0){return true};return false}module[_0x9299[34]]= Integration
\ No newline at end of file