053eb814bc0d773719750c242db771bdab0f7a52
[motion-next.git] / server / config / seedDB / squareProjects.js
1 const a872_0x153b=['Orders','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','Can\x27t\x20create\x20Square\x20Projects','create','app','readFileSync','AgentManagement','info','path','Basic\x20IVR\x20sample\x20auto\x20generated','Square\x20Projects\x20have\x20been\x20created','AutoAttendant','CSI','Agent\x20Management\x20sample\x20auto\x20generated','error','xml','.xml','bulkCreate','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','Survey','then','catch','Survey\x20IVR\x20sample\x20auto\x20generated'];(function(_0x3b3f1a,_0x153be5){const _0x2caf4a=function(_0x5c8241){while(--_0x5c8241){_0x3b3f1a['push'](_0x3b3f1a['shift']());}};_0x2caf4a(++_0x153be5);}(a872_0x153b,0x157));const a872_0x2caf=function(_0x3b3f1a,_0x153be5){_0x3b3f1a=_0x3b3f1a-0x0;let _0x2caf4a=a872_0x153b[_0x3b3f1a];return _0x2caf4a;};const _0x52a4b0=a872_0x2caf;'use strict';const fs=require('fs'),path=require(_0x52a4b0('0xa')),db=require('../../mysqldb')['db'],logger=require('../logger')(_0x52a4b0('0x6')),getXml=function(_0x5c8241){const _0x339ff5=_0x52a4b0;return fs[_0x339ff5('0x7')](path['join'](__dirname,_0x339ff5('0x11'),_0x5c8241+_0x339ff5('0x12')),{'encoding':'utf-8'});},squareProjects=[{'id':0x1,'name':'AutoAttendant','description':_0x52a4b0('0xb'),'preproduction':getXml(_0x52a4b0('0xd')),'production':getXml(_0x52a4b0('0xd'))},{'id':0x2,'name':'CSI','description':_0x52a4b0('0x3'),'preproduction':getXml(_0x52a4b0('0xe')),'production':getXml(_0x52a4b0('0xe'))},{'id':0x3,'name':_0x52a4b0('0x2'),'description':_0x52a4b0('0x14'),'preproduction':getXml(_0x52a4b0('0x2')),'production':getXml(_0x52a4b0('0x2'))},{'id':0x4,'name':_0x52a4b0('0x15'),'description':_0x52a4b0('0x1'),'preproduction':getXml(_0x52a4b0('0x15')),'production':getXml('Survey')},{'id':0x5,'name':_0x52a4b0('0x8'),'description':_0x52a4b0('0xf'),'preproduction':getXml(_0x52a4b0('0x8')),'production':getXml(_0x52a4b0('0x8'))}];exports[_0x52a4b0('0x5')]=function(){const _0x27e769=_0x52a4b0;return db['SquareProject'][_0x27e769('0x13')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x27e769('0x16')](function(){const _0x40336d=_0x27e769;logger[_0x40336d('0x9')](_0x40336d('0xc'));})[_0x27e769('0x0')](function(){const _0x1c9c24=_0x27e769;logger[_0x1c9c24('0x10')](_0x1c9c24('0x4'));});};