Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / config / seedDB / squareProjects.js
index 96b12a2..d4035bb 100644 (file)
@@ -1 +1 @@
-const a872_0x565c=['catch','Survey','CSI','bulkCreate','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','SquareProject','xml','../../mysqldb','AgentManagement','info','../logger','readFileSync','AutoAttendant','Orders','error','Agent\x20Management\x20sample\x20auto\x20generated','utf-8','Basic\x20IVR\x20sample\x20auto\x20generated','Survey\x20IVR\x20sample\x20auto\x20generated','path','app','create','.xml'];(function(_0x55f635,_0x565cc1){const _0x42cf76=function(_0x2cd235){while(--_0x2cd235){_0x55f635['push'](_0x55f635['shift']());}};_0x42cf76(++_0x565cc1);}(a872_0x565c,0x175));const a872_0x42cf=function(_0x55f635,_0x565cc1){_0x55f635=_0x55f635-0x0;let _0x42cf76=a872_0x565c[_0x55f635];return _0x42cf76;};const _0x79b101=a872_0x42cf;'use strict';const fs=require('fs'),path=require(_0x79b101('0xe')),db=require(_0x79b101('0x2'))['db'],logger=require(_0x79b101('0x5'))(_0x79b101('0xf')),getXml=function(_0x2cd235){const _0x59c780=_0x79b101;return fs[_0x59c780('0x6')](path['join'](__dirname,_0x59c780('0x1'),_0x2cd235+_0x59c780('0x11')),{'encoding':_0x59c780('0xb')});},squareProjects=[{'id':0x1,'name':'AutoAttendant','description':_0x79b101('0xc'),'preproduction':getXml(_0x79b101('0x7')),'production':getXml(_0x79b101('0x7'))},{'id':0x2,'name':'CSI','description':_0x79b101('0x16'),'preproduction':getXml('CSI'),'production':getXml(_0x79b101('0x14'))},{'id':0x3,'name':_0x79b101('0x8'),'description':'Order\x20DB\x20IVR\x20sample\x20auto\x20generated','preproduction':getXml(_0x79b101('0x8')),'production':getXml('Orders')},{'id':0x4,'name':_0x79b101('0x13'),'description':_0x79b101('0xd'),'preproduction':getXml(_0x79b101('0x13')),'production':getXml(_0x79b101('0x13'))},{'id':0x5,'name':_0x79b101('0x3'),'description':_0x79b101('0xa'),'preproduction':getXml('AgentManagement'),'production':getXml(_0x79b101('0x3'))}];exports[_0x79b101('0x10')]=function(){const _0x3048ed=_0x79b101;return db[_0x3048ed('0x0')][_0x3048ed('0x15')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x41c3ed=_0x3048ed;logger[_0x41c3ed('0x4')]('Square\x20Projects\x20have\x20been\x20created');})[_0x3048ed('0x12')](function(){const _0xae4950=_0x3048ed;logger[_0xae4950('0x9')]('Can\x27t\x20create\x20Square\x20Projects');});};
\ No newline at end of file
+const a872_0x599b=['app','.xml','utf-8','then','xml','info','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','../logger','path','Can\x27t\x20create\x20Square\x20Projects','Agent\x20Management\x20sample\x20auto\x20generated','SquareProject','Orders','bulkCreate','Survey','AutoAttendant','Square\x20Projects\x20have\x20been\x20created','Basic\x20IVR\x20sample\x20auto\x20generated','CSI','join'];(function(_0x301172,_0x599bbe){const _0x41f607=function(_0x24850c){while(--_0x24850c){_0x301172['push'](_0x301172['shift']());}};_0x41f607(++_0x599bbe);}(a872_0x599b,0x1e2));const a872_0x41f6=function(_0x301172,_0x599bbe){_0x301172=_0x301172-0x0;let _0x41f607=a872_0x599b[_0x301172];return _0x41f607;};const _0x1ed96f=a872_0x41f6;'use strict';const fs=require('fs'),path=require(_0x1ed96f('0x6')),db=require('../../mysqldb')['db'],logger=require(_0x1ed96f('0x5'))(_0x1ed96f('0x12')),getXml=function(_0x24850c){const _0x183c56=_0x1ed96f;return fs['readFileSync'](path[_0x183c56('0x11')](__dirname,_0x183c56('0x2'),_0x24850c+_0x183c56('0x13')),{'encoding':_0x183c56('0x0')});},squareProjects=[{'id':0x1,'name':_0x1ed96f('0xd'),'description':_0x1ed96f('0xf'),'preproduction':getXml(_0x1ed96f('0xd')),'production':getXml(_0x1ed96f('0xd'))},{'id':0x2,'name':_0x1ed96f('0x10'),'description':_0x1ed96f('0x4'),'preproduction':getXml('CSI'),'production':getXml(_0x1ed96f('0x10'))},{'id':0x3,'name':_0x1ed96f('0xa'),'description':'Order\x20DB\x20IVR\x20sample\x20auto\x20generated','preproduction':getXml('Orders'),'production':getXml('Orders')},{'id':0x4,'name':_0x1ed96f('0xc'),'description':'Survey\x20IVR\x20sample\x20auto\x20generated','preproduction':getXml('Survey'),'production':getXml(_0x1ed96f('0xc'))},{'id':0x5,'name':'AgentManagement','description':_0x1ed96f('0x8'),'preproduction':getXml('AgentManagement'),'production':getXml('AgentManagement')}];exports['create']=function(){const _0x1f8d35=_0x1ed96f;return db[_0x1f8d35('0x9')][_0x1f8d35('0xb')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1f8d35('0x1')](function(){const _0x379529=_0x1f8d35;logger[_0x379529('0x3')](_0x379529('0xe'));})['catch'](function(){const _0xe9a2c6=_0x1f8d35;logger['error'](_0xe9a2c6('0x7'));});};
\ No newline at end of file