Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / config / seedDB / squareProjects.js
index d4035bb..99aae0e 100644 (file)
@@ -1 +1 @@
-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
+const a872_0x3f7d=['utf-8','Orders','SquareProject','then','xml','app','Survey\x20IVR\x20sample\x20auto\x20generated','AutoAttendant','readFileSync','create','bulkCreate','CSI','path','Agent\x20Management\x20sample\x20auto\x20generated','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','Survey','.xml','info','join','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','Basic\x20IVR\x20sample\x20auto\x20generated','catch','Square\x20Projects\x20have\x20been\x20created','AgentManagement'];(function(_0x594dc9,_0x3f7d4b){const _0x598321=function(_0x47e4e8){while(--_0x47e4e8){_0x594dc9['push'](_0x594dc9['shift']());}};_0x598321(++_0x3f7d4b);}(a872_0x3f7d,0x114));const a872_0x5983=function(_0x594dc9,_0x3f7d4b){_0x594dc9=_0x594dc9-0x0;let _0x598321=a872_0x3f7d[_0x594dc9];return _0x598321;};const _0x4480a6=a872_0x5983;'use strict';const fs=require('fs'),path=require(_0x4480a6('0x0')),db=require('../../mysqldb')['db'],logger=require('../logger')(_0x4480a6('0x11')),getXml=function(_0x47e4e8){const _0x2c37d4=_0x4480a6;return fs[_0x2c37d4('0x14')](path[_0x2c37d4('0x6')](__dirname,_0x2c37d4('0x10'),_0x47e4e8+_0x2c37d4('0x4')),{'encoding':_0x2c37d4('0xc')});},squareProjects=[{'id':0x1,'name':_0x4480a6('0x13'),'description':_0x4480a6('0x8'),'preproduction':getXml(_0x4480a6('0x13')),'production':getXml(_0x4480a6('0x13'))},{'id':0x2,'name':'CSI','description':_0x4480a6('0x2'),'preproduction':getXml(_0x4480a6('0x17')),'production':getXml(_0x4480a6('0x17'))},{'id':0x3,'name':_0x4480a6('0xd'),'description':_0x4480a6('0x7'),'preproduction':getXml(_0x4480a6('0xd')),'production':getXml('Orders')},{'id':0x4,'name':_0x4480a6('0x3'),'description':_0x4480a6('0x12'),'preproduction':getXml(_0x4480a6('0x3')),'production':getXml(_0x4480a6('0x3'))},{'id':0x5,'name':_0x4480a6('0xb'),'description':_0x4480a6('0x1'),'preproduction':getXml(_0x4480a6('0xb')),'production':getXml(_0x4480a6('0xb'))}];exports[_0x4480a6('0x15')]=function(){const _0x13b3be=_0x4480a6;return db[_0x13b3be('0xe')][_0x13b3be('0x16')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x13b3be('0xf')](function(){const _0x43f99c=_0x13b3be;logger[_0x43f99c('0x5')](_0x43f99c('0xa'));})[_0x13b3be('0x9')](function(){logger['error']('Can\x27t\x20create\x20Square\x20Projects');});};
\ No newline at end of file