Built motion from commit 945d615.|1.0.13
[motion.git] / server / config / integrations / index.js
index 835941e..2dee746 100644 (file)
@@ -1 +1 @@
-var _0x668a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\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","\x6C\x6F\x67","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\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","\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","\x61\x63\x74\x69\x6F\x6E","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x73\x74\x61\x74\x65","\x6D\x61\x70","\x69\x6E\x64\x65\x78\x4F\x66","\x65\x78\x70\x6F\x72\x74\x73"];_0x668a[0];var _=require(_0x668a[1]);var util=require(_0x668a[2]);var IntegrationModel=require(_0x668a[4])[_0x668a[3]];var Variable=require(_0x668a[4])[_0x668a[5]];var Zendesk=require(_0x668a[6]);var Salesforce=require(_0x668a[7]);var Sugarcrm=require(_0x668a[8]);var Freshdesk=require(_0x668a[9]);var Motionbar=require(_0x668a[10]);function Integration(){console[_0x668a[12]](_0x668a[11]);var _0xf236xb= new Zendesk();var _0xf236xc= new Salesforce();var _0xf236xd= new Sugarcrm();var _0xf236xe= new Freshdesk();var _0xf236xf= new Motionbar();this[_0x668a[13]]= function(_0xf236x10,_0xf236x11,_0xf236x12,_0xf236x13,_0xf236x14,_0xf236x15,_0xf236x16){if(integrationIsActive(_0xf236x10[_0x668a[14]],_0xf236x16)){switch(_0xf236x10[_0x668a[14]]){case _0x668a[18]:_0xf236xb[_0x668a[17]](_0xf236x10[_0x668a[15]],_0xf236x10[_0x668a[16]],_0xf236x12,_0xf236x13,_0xf236x11,_0xf236x14);break;case _0x668a[19]:_0xf236xc[_0x668a[17]](_0xf236x10[_0x668a[15]],_0xf236x10[_0x668a[16]],_0xf236x12,_0xf236x13,_0xf236x11,_0xf236x14,_0xf236x15);break;case _0x668a[20]:_0xf236xd[_0x668a[17]](_0xf236x10[_0x668a[15]],_0xf236x10[_0x668a[16]],_0xf236x12,_0xf236x13,_0xf236x11,_0xf236x14,_0xf236x15);break;case _0x668a[21]:_0xf236xe[_0x668a[17]](_0xf236x10[_0x668a[15]],_0xf236x10[_0x668a[16]],_0xf236x12,_0xf236x13,_0xf236x11,_0xf236x14,_0xf236x15);break;default:console[_0x668a[12]](_0x668a[22],_0xf236x10[_0x668a[14]])}}else {console[_0x668a[12]](util[_0x668a[24]](_0x668a[23],_0xf236x10[_0x668a[14]]))};if(_0xf236x10[_0x668a[25]]=== _0x668a[26]){_0xf236xf[_0x668a[17]](_0xf236x10,_0xf236x12,_0xf236x11,_0xf236x14,_0xf236x15)}}}function integrationIsActive(_0xf236x18,_0xf236x19){var _0xf236x1a=_[_0x668a[28]](_0xf236x19,_0x668a[27]);if(_[_0x668a[29]](_0xf236x1a,_0xf236x18)>= 0){return true};return false}module[_0x668a[30]]= Integration
\ No newline at end of file
+var _0xf832=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\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","\x6C\x6F\x67","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\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","\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","\x61\x63\x74\x69\x6F\x6E","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x73\x74\x61\x74\x65","\x6D\x61\x70","\x69\x6E\x64\x65\x78\x4F\x66","\x65\x78\x70\x6F\x72\x74\x73"];_0xf832[0];var _=require(_0xf832[1]);var util=require(_0xf832[2]);var IntegrationModel=require(_0xf832[4])[_0xf832[3]];var Variable=require(_0xf832[4])[_0xf832[5]];var Zendesk=require(_0xf832[6]);var Salesforce=require(_0xf832[7]);var Sugarcrm=require(_0xf832[8]);var Freshdesk=require(_0xf832[9]);var Motionbar=require(_0xf832[10]);function Integration(){console[_0xf832[12]](_0xf832[11]);var _0x472cxb= new Zendesk();var _0x472cxc= new Salesforce();var _0x472cxd= new Sugarcrm();var _0x472cxe= new Freshdesk();var _0x472cxf= new Motionbar();this[_0xf832[13]]= function(_0x472cx10,_0x472cx11,_0x472cx12,_0x472cx13,_0x472cx14,_0x472cx15,_0x472cx16){if(integrationIsActive(_0x472cx10[_0xf832[14]],_0x472cx16)){switch(_0x472cx10[_0xf832[14]]){case _0xf832[18]:_0x472cxb[_0xf832[17]](_0x472cx10[_0xf832[15]],_0x472cx10[_0xf832[16]],_0x472cx12,_0x472cx13,_0x472cx11,_0x472cx14);break;case _0xf832[19]:_0x472cxc[_0xf832[17]](_0x472cx10[_0xf832[15]],_0x472cx10[_0xf832[16]],_0x472cx12,_0x472cx13,_0x472cx11,_0x472cx14,_0x472cx15);break;case _0xf832[20]:_0x472cxd[_0xf832[17]](_0x472cx10[_0xf832[15]],_0x472cx10[_0xf832[16]],_0x472cx12,_0x472cx13,_0x472cx11,_0x472cx14,_0x472cx15);break;case _0xf832[21]:_0x472cxe[_0xf832[17]](_0x472cx10[_0xf832[15]],_0x472cx10[_0xf832[16]],_0x472cx12,_0x472cx13,_0x472cx11,_0x472cx14,_0x472cx15);break;default:console[_0xf832[12]](_0xf832[22],_0x472cx10[_0xf832[14]])}}else {console[_0xf832[12]](util[_0xf832[24]](_0xf832[23],_0x472cx10[_0xf832[14]]))};if(_0x472cx10[_0xf832[25]]=== _0xf832[26]){_0x472cxf[_0xf832[17]](_0x472cx10,_0x472cx12,_0x472cx11,_0x472cx14,_0x472cx15)}}}function integrationIsActive(_0x472cx18,_0x472cx19){var _0x472cx1a=_[_0xf832[28]](_0x472cx19,_0xf832[27]);if(_[_0xf832[29]](_0x472cx1a,_0x472cx18)>= 0){return true};return false}module[_0xf832[30]]= Integration
\ No newline at end of file