MC-100: Process and normalize attribute to ApiImport format

| Q                    | A
| -------------------- | ---
| Bug fix?             | n
| New feature?         | n
| Specs pass?*         | y
| Checkstyle issues?** | n
| PMD issues?***       | n
| Fixed tickets        | MC-100
| Doc PR               | n
$type = isset($mapping[$pimAttributeType]) ? $mapping[$pimAttributeType] : 'text';